emacs-devel
[Top][All Lists]
Advanced

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

Re: Customize Rogue


From: Luc Teirlinck
Subject: Re: Customize Rogue
Date: Wed, 12 Mar 2003 18:27:51 -0600 (CST)

Stefan Monnier wrote:

   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).

What would you do with minor-mode type variables for which
define-minor-mode currently produces:

:set
    (lambda
      (symbol value)
      (funcall symbol
             (or value 0)))

to replace a value of nil of the variable by 0?  Name that lambda
function for internal use by defcustom?

Sincerely,

Luc.





reply via email to

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