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: Wed, 13 Oct 2021 22:55:01 +0000


I understand, but edmacro is not preloaded, and files we do preload, like bindings.el, call define-key all over the place. Letting all those calls fail, albeit silently, would not be useful, not if we want to be able to use 'kbd' syntax freely in preloaded files. So I'm not sure I understand how your proposal will work in practice.

The question (at least as I understood is) was to make it possible for users (in their init files) and third-party packages to use a more readable syntax for key bindings, without wrapping each key binding in a call to kbd. That would have been a first step towards phasing out the "strings where every char represents an event" syntax. Perhaps the check for (fboundp 'kbd) could have been replaced by a (will_bootstrap_p () || will_dump_p ()) check to avoid the unnecessary calls during bootstrap.

A second step would be to preload edmacro-parse-keys, to make it possible to use the kbd syntax in other preloaded files too.


Now that Stefan K has written a patch to move kbd and edmacro-parse-keys to subr.el, the distinction above is not necessary anymore. With the proposed patch (which would probably need some more work) it would be possible to use the kbd syntax in define-key and friends without explicitly calling kbd. But again I don't really see why we're discussing this, given that Lars and Stefan K already said it's a no go.



reply via email to

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