GNU bug report logs -
#29203
26.0.50; Binding a key to (MAP . CHAR) no longer works
Previous Next
Full log
View this message in rfc822 format
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.