[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customize Rogue

From: Stefan Monnier
Subject: Re: Customize Rogue
Date: Wed, 12 Mar 2003 13:38:39 -0500

>    Most uses of :set are for things like minor-mode (where using
>    define-minor-mode has the advantage of providing a standard way
>    to deal with it), the others should be replaced.
> Since every Lisp symbol can at the same time be a variable and a
> function, it would have been nice if every variable my_favorite_symbol
> with a :set function, would have an associated function
> my_favorite_symbol and if that function behaved in exactly the same
> way as minor mode functions for variables of boolean type and if, for
> non-boolean type variables, (my_favorite_symbol value) would be
> equivalent with setting the variable my_favorite_symbol to VALUE
> through customize:
> :set #'funcall
> But I guess it is much too late to enforce anything like this, even if
> it were deemed desirable.

Hey, now, there's a great idea.
We could add some code in defcustom so that it complains when the
value of :set is not a symbol (which would ensure that whatever the
:setter is, it can always be called easily from elisp).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]