emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: minor modes keymaps are not keymaps?


From: Luc Teirlinck
Subject: Re: minor modes keymaps are not keymaps?
Date: Thu, 6 Jul 2006 18:19:31 -0500 (CDT)

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]