[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: |
Thu, 17 Mar 2005 23:47:55 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> I believe that the reason you have problems is that define-minor-mode
> uses `custom-initialize-default' as the Custom :initialize function.
> That is correct if you want the minor mode disabled by default, but
> not if you want it enabled by default. Then you need to use
> `custom-initialize-set'. Passing an explicit :initialize keyword to
> `define-minor-mode' does not seem to help: it gets ignored. I believe
> that `define-minor-mode' should use `custom-initialize-set' as the
> :initialize function if :init-value is non-nil. Then the patches
> below would work. _Currently they do not._ An alternate patch that
> does work right now is to call `custom-reevaluate-setting' in
> startup.el, but to me, that seems ugly.
Assuming it's still considered a good idea to make sure that loading a file
does not have any other side effect, I think it's better to keep
the :init-value at nil, and simply add a call to file-name-shadow-mode
somewhere (either in startup, or loadup).
Stefan
- file-name-shadow-mode, David Kastrup, 2005/03/17
- Re: file-name-shadow-mode, Matt Hodges, 2005/03/17
- Re: file-name-shadow-mode, Miles Bader, 2005/03/17
- Re: file-name-shadow-mode, Nick Roberts, 2005/03/17
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/17
- Re: file-name-shadow-mode,
Stefan Monnier <=
- 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, 2005/03/20
- Re: file-name-shadow-mode, Luc Teirlinck, 2005/03/20