bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52448: key-valid-p vs "C-M-x" and "ESC C-x"


From: Stefan Kangas
Subject: bug#52448: key-valid-p vs "C-M-x" and "ESC C-x"
Date: Sun, 12 Dec 2021 00:17:48 -0800

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

2.  (key-description (kbd "C-M-x"))
    => "C-M-x"

    (key-valid-p "C-M-x")
    => t

However, there is also this, and the comment at the top of keymap.c:

    (kbd "ESC C-x")
    => "^[^X"

    (kbd "M-C-x")
    => [134217752]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]