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

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 25 Feb 2022 17:49:02 UTC

Severity: normal

Found in version 27.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: "54161 <at> debbugs.gnu.org" <54161 <at> debbugs.gnu.org>
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.




This bug report was last modified 3 years and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.