[Top][All Lists]
[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
- Re: Customize and autoloaded libraries, (continued)
- Re: Customize and autoloaded libraries, Miles Bader, 2001/12/03
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/03
- Re: Customize and autoloaded libraries, Alex Schroeder, 2001/12/03
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/04
- diff-list: customizing lists, Alex Schroeder, 2001/12/04
- Re: diff-list: customizing lists, Richard Stallman, 2001/12/05
- Re: Customize and autoloaded libraries, Richard Stallman, 2001/12/04
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/04
- Re: Customize and autoloaded libraries,
Stefan Monnier <=
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/04
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/05
- Re: Customize and autoloaded libraries, Richard Stallman, 2001/12/05
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/05
- Re: Customize and autoloaded libraries, Stefan Monnier, 2001/12/05
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/05
- Re: Customize and autoloaded libraries, Stefan Monnier, 2001/12/05
- Re: Customize and autoloaded libraries, Richard Stallman, 2001/12/06
- Re: Customize and autoloaded libraries, Per Abrahamsen, 2001/12/07
- Re: Customize and autoloaded libraries, Richard Stallman, 2001/12/08