[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
From: |
Stefan Kangas |
Subject: |
bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works |
Date: |
Mon, 11 Nov 2019 03:32:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
found 29203 27.0.50
thanks
Fox Kiester <foxkies@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@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
- bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works,
Stefan Kangas <=