emacs-devel
[Top][All Lists]
Advanced

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

Re: obsolete comment in tool-bar.el


From: Richard M. Stallman
Subject: Re: obsolete comment in tool-bar.el
Date: Fri, 08 Jul 2005 13:40:09 -0400

    (defvar rogue-var) ;; to silence the compiler for the next line.
    (unless (default-boundp rogue-var) (setq rogue-var nil))
    (defcustom rogue-var ...
    ...
      :initialize 'custom-initialize-set
    ...)

Suppose we implement a keyword in defcustom that causes it to generate
all that.  That will look nice in the source code, but at execution
time it will be equivalent to the above.

I think that would be clearly better than all three of the above
solutions.

    Even with my original solution, which simplifies the work somewhat,
    scanning the Emacs source tree (_including_ the C source) for
    everything that influences the standard value and then rewriting the
    equivalent expression (often from C to Lisp) in the defcustom can
    take, in certain cases, quite some work.

Doing this work is the only way to get the benefit, so let's do it.




reply via email to

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