[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file-name-shadow-mode
From: |
Stefan Monnier |
Subject: |
Re: file-name-shadow-mode |
Date: |
Sun, 20 Mar 2005 09:13:13 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> beginning of the define-minor-mode expansion. Otherwise, setting
> :initialize to something else but `custom-initialize-default' is
> probably not going to work for minor modes defined with
> `define-minor-mode'. (It definitely does not work with the current
> code.)
I think it's OK that way. Last time we had a discussion around this, it
became clear to me that the :init value should *describe* the state you
get when loading the file, rather than *decide* it.
This is because if the minor mode's code needs to be run to properly set the
value, you can't run it safely before the whole file is loaded (since the
minor mode's code might call functions defined further down in the file).
So I think it's best to keep the :init value at nil and then elsewhere
do a customize-set-variable (in startup.el, in loadup.el, or even at the
end of rfn-shadow.el). That's the cleaner solution.
Stefan
- Re: file-name-shadow-mode, (continued)
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/17
- Re: file-name-shadow-mode, Stefan Monnier, 2005/03/18
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/18
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/18
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/18
- Re: file-name-shadow-mode, Richard Stallman, 2005/03/18
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/19
- Re: file-name-shadow-mode, David Kastrup, 2005/03/19
- Re: file-name-shadow-mode, Stefan Monnier, 2005/03/19
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/19
- Re: file-name-shadow-mode,
Stefan Monnier <=
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/20
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/20
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/19
- Re: file-name-shadow-mode, Miles Bader, 2005/03/19
- Re: file-name-shadow-mode, David Kastrup, 2005/03/19
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/20
- Re: file-name-shadow-mode, David Kastrup, 2005/03/20
- Re: file-name-shadow-mode, Richard Stallman, 2005/03/20
- Re: file-name-shadow-mode, Richard Stallman, 2005/03/20
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/20