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: Tue, 31 May 2005 21:33:45 -0500 (CDT)

Richard Stallman wrote:

          Anyway, how about if we change define-minor-mode so that it generates
          the code to record which major mode enabled it?

       The very vast majority of minor modes have no reason whatsoever to do
       this.

   Does that matter?

No, but what _really_ matters is that it is completely impossible for
define-minor-mode to reliably keep track of what major mode the minor
mode was set up for, just as much as it is impossible for
define-global-minor-mode to do this.  Any function could potentially
set up the minor mode for a given major mode, not just the minor mode
function.  Font Lock is a pretty wild example of that.

Sincerely,

Luc.




reply via email to

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