GNU bug report logs -
#9819
24.0.50; Docstring of `define-minor-mode' and KEYMAP
Previous Next
Reported by: Deniz Dogan <deniz <at> dogan.se>
Date: Thu, 20 Oct 2011 23:00:01 UTC
Severity: minor
Found in version 24.0.50
Fixed in version 24.0.91
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
I read in the docstring of `define-minor-mode':
<quote>
Optional KEYMAP is the default keymap bound to the mode keymap.
If non-nil, it should be a variable name (whose value is a keymap),
or an expression that returns either a keymap or a list of
arguments for `easy-mmode-define-keymap'. If KEYMAP is not a symbol,
this also defines the variable MODE-map.
[...]
:keymap MAP Same as the KEYMAP argument.
</quote>
The way I interpret that is: if I don't pass a KEYMAP argument, it will
define a variable named `MODE-map'. However, this doesn't happen when I
use this code:
<quote>
(define-minor-mode helo-track-minor-mode
"Global minor mode for tracking activity in helo buffers."
:init-value nil
:lighter ""
:global t
:group 'helo
[...]
</quote>
Am I misunderstanding the docstring or is this a bug?
Deniz
This bug report was last modified 13 years and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.