From: Shynur Xie <one.last.kiss@outlook.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: symbol `keymap' in a keymap
Date: Wed, 13 Sep 2023 12:48:10 +0000 [thread overview]
Message-ID: <PH0PR11MB74709D3B83778A0488FDD182D7F0A@PH0PR11MB7470.namprd11.prod.outlook.com> (raw)
The elisp manual says (23.3 Format of Keymaps):
"""
A symbol whose function definition is a keymap is also a keymap.
"""
and
"""
Several kinds of elements may appear in a keymap, after the
symbol keymap that begins it:
(type . binding) ...
(type item-name . binding) ...
...
"""
It doesn't list _symbol_.
I noticed that the value of `lisp-mode-map' is
(keymap
(menu-bar ...)
...
keymap ; <-
...)
According to the first quote, I thought the 2nd `keymap' is a keymap,
so I tried
(symbol-function 'keymap)
but the result is `nil', which means it's not a keymap.
This section of the manual seems to have omitted something?
next reply other threads:[~2023-09-13 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 12:48 Shynur Xie [this message]
2023-09-15 2:24 ` symbol `keymap' in a keymap Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PH0PR11MB74709D3B83778A0488FDD182D7F0A@PH0PR11MB7470.namprd11.prod.outlook.com \
--to=one.last.kiss@outlook.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.