* lisp/keymap.el (keymap-set): Refer to 'key-description'. (Bug#78714)

This commit is contained in:
Robert Pluim 2025-06-10 09:48:20 +02:00
parent 941158fc13
commit 1bed294958

View file

@ -60,7 +60,11 @@ DEFINITION is anything that can be a key's definition:
keymap has been created with a menu name, see `make-keymap'),
or a cons (MAP . CHAR), meaning use definition of CHAR in keymap MAP,
or an extended menu item definition.
(See info node `(elisp)Extended Menu Items'.)"
(See info node `(elisp)Extended Menu Items'.)
The `key-description' convenience function converts a simple
string of characters to an equivalent form that is acceptable for
COMMAND."
(declare (compiler-macro (lambda (form) (keymap--compile-check key) form)))
(keymap--check key)
;; If we're binding this key to another key, then parse that other