Subject: Re: bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works

From: Stefan Kangas <[email-masked]>
Date: Mon, 11 Nov 2019 03:32:57 +0100

found 29203 27.0.50
thanks

Fox Kiester <[email-masked]> 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 <[email-masked]> 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