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: Mon, 18 Oct 2021 16:27:41 +0000


At the same time, maybe I don't understand the overreaching plan. Is the idea to be able to replace any use of (kbd "M-x") with ["M-x"] everywhere, including in 'define-key' et al?

Any use of (kbd "M-x") can't be replaced with ["M-x"]. For example, this use from (info "(elisp) Functions for Key Lookup")

 (lookup-key (current-global-map) (kbd "C-x C-f"))

can't be replaced with:

 (lookup-key (current-global-map) ["C-x C-f"])


But note that with my patch it can be replaced with

(lookup-key (current-global-map) "C-x C-f")



reply via email to

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