all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6337: 24.0.50; doc of define-minor-mode incomplete wrt mode hooks
@ 2010-06-03  0:03 Drew Adams
  2010-06-03  1:56 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2010-06-03  0:03 UTC (permalink / raw
  To: 6337

The doc for `define-minor-mode' is incomplete regarding the mode
hooks, and it has apparently been like this since the beginning
(Emacs 21).
 
The doc (doc string and Elisp manual) speaks about the MODE-hook, where
MODE is the name of the minor mode.  But it does not mention that there
is also a `MODE-on-hook' and a `MODE-off-hook'.  That is, if you define
those hook variables they to will be processed by the mode command.

The exact behavior should be defined: The MODE-hook, if any, is run
first, then the MODE-on-hook or MODE-off-hook is run, depending on
whether the mode is being turned on or off.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-05-23 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'
 






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-13 22:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03  0:03 bug#6337: 24.0.50; doc of define-minor-mode incomplete wrt mode hooks Drew Adams
2010-06-03  1:56 ` Stefan Monnier
2011-07-13 22:10   ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.