[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type fun
From: |
Dan Nicolaescu |
Subject: |
Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions |
Date: |
Sat, 03 Apr 2010 15:23:04 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> Do we still want to add turn-on-MINOR_MODE type functions ?
>
> The reason for these is to put them on a major mode hook, so that a
> certain major mode would always enable the minor mode.
That is not necessary anymore, you can now add a minor mode to a hook
and it will turn on the mode.
> Minor modes can be turned on reliably from local variables (or
> .dir_locals.el) or hooks.
>
> Maybe so, but none of those replaces the usage on a major mode hook.
See above.
> Here's an idea. In running a normal hook, if the hook function is a
> minor mode, it could call the function with t as argument.
> That way, putting the minor mode function itself on the hook
> will do what people naively expected it to do, and there will
> be no need for the turn-on-MINOR_MODE functions.
Something like this is already implemented, so there is not need for
turn-no-MINOR-MODE anymore.
- Obsoleting end-user-functions [was: turn-on-* type functions], (continued)
- Obsoleting end-user-functions [was: turn-on-* type functions], Stephen J. Turnbull, 2010/04/04
- Re: Obsoleting end-user-functions [was: turn-on-* type functions], Daniel Colascione, 2010/04/04
- RE: Obsoleting end-user-functions [was: turn-on-* type functions], Drew Adams, 2010/04/05
- RE: Obsoleting end-user-functions [was: turn-on-* type functions], Stephen J. Turnbull, 2010/04/06
- Re: Obsoleting end-user-functions, Stefan Monnier, 2010/04/05
- Re: Obsoleting end-user-functions, Davis Herring, 2010/04/05
- Re: Obsoleting end-user-functions, Chad Brown, 2010/04/05
- Re: Obsoleting end-user-functions, Stephen J. Turnbull, 2010/04/06
- Re: Obsoleting end-user-functions, Richard Stallman, 2010/04/06
- Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions, Richard Stallman, 2010/04/04
- Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions,
Dan Nicolaescu <=
- Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions, Stefan Monnier, 2010/04/03