GNU bug report logs -
#6337
24.0.50; doc of define-minor-mode incomplete wrt mode hooks
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Thu, 3 Jun 2010 00:04:01 UTC
Severity: minor
Tags: notabug
Found in version 24.0.50
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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'
This bug report was last modified 13 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.