GNU bug report logs - #52448
key-valid-p vs "C-M-x" and "ESC C-x"

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Sun, 12 Dec 2021 08:18:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 52448 <at> debbugs.gnu.org
Subject: bug#52448: key-valid-p vs "C-M-x" and "ESC C-x"
Date: Mon, 13 Dec 2021 05:33:10 -0800
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Stefan Kangas <stefan <at> marxist.se> writes:
>
>> AFAIU, we want exactly one valid way to write keybindings with
>> `key-valid-p'.  Should both of these be `key-valid-p'?
>>
>> 1.  (key-description (kbd "ESC C-x"))
>>     => "C-M-x"
>>
>>     (key-valid-p "ESC C-x")
>>     => t
>
> That's what happens today, but Stefan M had a cunning plan to make
> round-tripping these keystrokes (EST/TAB/RET) work better.
>
> In that case
>
> "ESC C-x"
>
> and
>
> "C-M-x"
>
> would still both be valid, but refer to different things (that get
> resolved to the same thing).

So both will be valid even with the planned changes, and this is
notabug?




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

Previous Next


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