GNU bug report logs - #29203
26.0.50; Binding a key to (MAP . CHAR) no longer works

Previous Next

Package: emacs;

Reported by: Fox Kiester <foxkies <at> gmail.com>

Date: Wed, 8 Nov 2017 03:20:01 UTC

Severity: normal

Found in versions 27.0.50, 26.0.50

Full log


Message #13 received at control <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Fox Kiester <foxkies <at> gmail.com>
Cc: 29203 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
Date: Mon, 11 Nov 2019 03:32:57 +0100
found 29203 27.0.50
thanks

Fox Kiester <foxkies <at> gmail.com> writes:

> According to the docstring of define-key, a cons of (MAP . CHAR) is
> a valid key definition that will act as CHAR in MAP. This worked in
> previous versions of Emacs but now causes an error when the
> keybinding is executed: "Wrong type argument: commandp..."
>
> Initial discussion took place here: https://emacs.stackexchange.com/questions/36641/binding-a-key-to-map-char

I can reproduce this using:

0. (define-key global-map (kbd "C-c ,") (cons help-map ?r))
1. C-c ,

Drew Adams <drew.adams <at> oracle.com> writes:

> This is apparently a regression, introduced in Emacs 24.
> The problem does not exist in Emacs 20 through Emacs 23.

So was the behaviour changed willingly?  That is, is this a bug in the
documentation or in the code?

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 305 days ago.

Previous Next


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