emacs-devel
[Top][All Lists]
Advanced

[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.




reply via email to

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