emacs-devel
[Top][All Lists]
Advanced

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

Re: Customize and autoloaded libraries


From: Stefan Monnier
Subject: Re: Customize and autoloaded libraries
Date: Tue, 04 Dec 2001 12:03:02 -0500

> Richard Stallman <address@hidden> writes:
> 
> >     2. Invent a `defhook' declaration for hooks, which is like defcustom
> >        but allows merging the same way as add-hook.  I wanted to do that
> >        originally, but couldn't come up with a good design.
> >
> > I think this general idea is the best solution.  I am not sure we
> > need to have a separate `defhook' function though.
> 
> We could have some ad-hoc code in defcustom that checked whether the
> :type was set to "hook".

Indeed. `defcustom' for a hook could append the current value
(or nil if unbound) and the custom-set-value (instead of only using
custom-set-value if the variable is not bound yet.

Since you say that you couldn't come up with a good design, there
must be a problem with this approach, tho.


        Stefan




reply via email to

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