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: Lars Ingebrigtsen
Subject: Re: master 859190f 2/3: Convert some keymaps to defvar-keymap
Date: Thu, 14 Oct 2021 15:59:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Gregory Heytings <gregory@heytings.org> writes:

>> 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"?

The kbd syntax for `f' `p' is "f p".

---
f p runs the command (lambda nil (interactive)), which is an
interactive Lisp function.

It is bound to f p.
---

So people that want to use kbd syntax to bind `f' `p', and `define-key'
runs other things through `kbd' automatically, they will write:

(define-key "f p" ...)

and be confused.

Instead they'll have to write

(define-key (kbd "f p") ...)
(define-key "C-c C-c" ...)

and it's all DWIM mess.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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