[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9819: 24.0.50; Docstring of `define-minor-mode' and KEYMAP
From: |
Glenn Morris |
Subject: |
bug#9819: 24.0.50; Docstring of `define-minor-mode' and KEYMAP |
Date: |
Fri, 21 Oct 2011 03:13:44 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Deniz Dogan wrote:
> If KEYMAP is not a symbol, this also defines the variable MODE-map.
[...]
> The way I interpret that is: if I don't pass a KEYMAP argument, it will
> define a variable named `MODE-map'.
nil is a symbol. :(
If you pass a keymap argument that is not a symbol, eg:
:keymap '(("\C-a" . foo-command)
then a `foo-mode-map' variable will be defined and given that map as its
value.