emacs-devel
[Top][All Lists]
Advanced

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

Re: Moving kbd to subr.el


From: Gregory Heytings
Subject: Re: Moving kbd to subr.el
Date: Sun, 17 Oct 2021 19:32:26 +0000



I went with the

["C-c C-c"]

syntax, and changes are now pushed to the trunk.


I still believe that using strings would have been better, but okay, "the ship has sailed".

A suggestion:

(kbd-valid-p "<mouse-1>")
(kbd-valid-p "<Scroll_Lock>")

should return t, and

(kbd-valid-p "<123>")

should (I think) return nil.  IOW, kbd-valid-p should use:

(string-match-p "\\`<[A-Za-z][A-Za-z0-9_-]*>\\'" key)



reply via email to

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