* minor modes keymaps are not keymaps?
@ 2006-07-06 23:08 Lennart Borgman
2006-07-06 23:19 ` Luc Teirlinck
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2006-07-06 23:08 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: minor modes keymaps are not keymaps?
2006-07-06 23:08 minor modes keymaps are not keymaps? Lennart Borgman
@ 2006-07-06 23:19 ` Luc Teirlinck
2006-07-06 23:31 ` Lennart Borgman
0 siblings, 1 reply; 3+ messages in thread
From: Luc Teirlinck @ 2006-07-06 23:19 UTC (permalink / raw)
Cc: emacs-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: minor modes keymaps are not keymaps?
2006-07-06 23:19 ` Luc Teirlinck
@ 2006-07-06 23:31 ` Lennart Borgman
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2006-07-06 23:31 UTC (permalink / raw)
Cc: emacs-devel
Luc Teirlinck wrote:
> 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.
>
Ah! Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-06 23:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-06 23:08 minor modes keymaps are not keymaps? Lennart Borgman
2006-07-06 23:19 ` Luc Teirlinck
2006-07-06 23:31 ` Lennart Borgman
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.