emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-mode and mode hooks.


From: Luc Teirlinck
Subject: Re: org-mode and mode hooks.
Date: Wed, 1 Jun 2005 12:48:47 -0500 (CDT)

Richard Stallman wrote:

         Any function could potentially
       set up the minor mode for a given major mode, not just the minor mode
       function.

   I do not understand what you're talking about.

         Font Lock is a pretty wild example of that.

   Would you please be specific?

I am talking about things like font-lock-{add,remove}-keywords, when
passing nil for MODE.

In addition to this difficulty, not all minor modes are defined with
define-minor-mode.

Note that my latest patch to easy-mmode no longer requires minor modes
to manage the MODE-stored-mode variable themselves.
define-global-minor's managing is not 100% reliable, but now the
variable is only used for efficiency's sake, not for correctness'
sake, so it no longer needs to be 100% reliable.  A minor modes can
manage MODE-stored-mode _if it wants to_.  define-global-minor mode's
managing will not interfere with the minor mode's own managing.

Sincerely,

Luc.




reply via email to

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