bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#54161: 27.2; `define-minor-mode' with alist of key bindings


From: Drew Adams
Subject: bug#54161: 27.2; `define-minor-mode' with alist of key bindings
Date: Fri, 25 Feb 2022 22:43:33 +0000

BTW, note that this is not a problem:


(define-minor-mode tata-mode
  "TATA MODE" nil nil '(((kbd ">") . forward-char)))

The key `>' gets defined, no problem. Even though
`(kbd ">")' is actually a list, not a key sequence.

But this is a problem (as expected, once it's
understood that the `(kbd "C->")' doesn't get
evaluated):

(define-minor-mode tata-mode
  "TATA MODE" nil nil '(((kbd "C->") . forward-char)))

Why isn't there the same problem with `(kbd ">")'?

The behavior is a bit confusing.  All the more reason
for making sure the doc can't mislead.





reply via email to

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