From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: minor modes keymaps are not keymaps?
Date: Thu, 6 Jul 2006 18:19:31 -0500 (CDT) [thread overview]
Message-ID: <200607062319.k66NJVwa012627@jane.dms.auburn.edu> (raw)
In-Reply-To: <44AD9806.4010601@student.lu.se> (message from Lennart Borgman on Fri, 07 Jul 2006 01:08:54 +0200)
Lennart Borgman wrote:
Define a minor mode:
(define-minor-mode maptest-mode "Just testing keymapp mode-map."
nil
nil
'(
('[(control ?b)] . mark-whole-buffer)
))
Then evaluate:
(keymapp 'maptest-mode-map)
Why does this give nil?
>From the keymapp docstring:
A keymap is a list (keymap . ALIST),
or a symbol whose function definition is itself a keymap.
But maptest-mode-map is a symbol whose _value_ and _not_ whose
function definition is a keymap. (keymapp maptest-mode-map) returns t.
Sincerely,
Luc.
next prev parent reply other threads:[~2006-07-06 23:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-06 23:08 minor modes keymaps are not keymaps? Lennart Borgman
2006-07-06 23:19 ` Luc Teirlinck [this message]
2006-07-06 23:31 ` Lennart Borgman
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=200607062319.k66NJVwa012627@jane.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=emacs-devel@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.