From xemacs-m  Tue Apr 15 05:15:29 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id FAA21846
	for <xemacs-beta@xemacs.org>; Tue, 15 Apr 1997 05:15:27 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id MAA12058; Tue, 15 Apr 1997 12:14:45 +0200 (MET DST)
Sender: hniksic@public.srce.hr
To: Per Abrahamsen <abraham@dina.kvl.dk>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: Specifiers in custom
References: <kigzpv3xjqu.fsf@jagor.srce.hr> <rj912mj446.fsf@zuse.dina.kvl.dk> <kigiv1qyjyr.fsf@jagor.srce.hr> <rjzpv2ho21.fsf@zuse.dina.kvl.dk>
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nA
        EL1M(".[qvI#a2E6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/X
        vhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 15 Apr 1997 12:14:43 +0200
In-Reply-To: Per Abrahamsen's message of 13 Apr 1997 18:42:30 +0200
Message-ID: <kigohbgh9t8.fsf@jagor.srce.hr>
Lines: 24
X-Mailer: Gnus v5.4.42/XEmacs 19.15

Per Abrahamsen <abraham@dina.kvl.dk> writes:

> If it should be done, it should be as a separate `defspecifier'
> construct, in a separate `cus-spec.el' file.  I'm willing to give
> advice and help, but not to write or maintain it.

Actually, once you implement callbacks for setting a variable, it will
quite simple to simulate `cus-spec.el' with the native code.  For
instance:

(custom-add-to-group 'menubar 'menubar-visible-p 'custom-variable)
(put 'menubar-visible-p 'custom-type
     '(integer :value-to-internal (lambda (wid val)
                                    (specifier-instance menubar-visible-p))
               :callback (lambda (val)
                           (set-specifier menubar-visible-p val))))

Or something like that.  It could be macroized, and named
conveniently.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}

