emacs-devel
[Top][All Lists]
Advanced

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

Re: master 859190f 2/3: Convert some keymaps to defvar-keymap


From: Gregory Heytings
Subject: Re: master 859190f 2/3: Convert some keymaps to defvar-keymap
Date: Thu, 14 Oct 2021 13:53:26 +0000


Sorry for the confusion, what I said was unclear: with the proposed (proof of concept) patch (see below), such a sequence would not be transformed by kbd, because it does not contain "C-" or something similar.

That's even more confusing. If you want to only use kbd syntax, then you have to use kbd explicitly for some key bindings (if you want to bind "fp", for instance), but not for others.


(kbd "fp") == "fp", so why would you need to use kbd explicitly to bind "fp"? With the patch:

(local-set-key "f" some-command) binds f
(local-set-key "fp" some-command) binds f p
(local-set-key "f p" some-command) binds f SPC p
(local-set-key "C-p" some-command) binds C-p
(local-set-key "M-p" some-command) binds M-p
(local-set-key "C-M-p" some-command) binds C-M-p

But if you want to bind C - p (capital C, dash, p) you have to use a vector:

(local-set-key [(C) (-) (p)] some-command) binds C - p



reply via email to

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