]> git.eshelyaron.com Git - emacs.git/commit
keymap.el: Ease up support for non-`kbd` formats.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 2 Oct 2022 17:52:57 +0000 (13:52 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 2 Oct 2022 18:07:24 +0000 (14:07 -0400)
commit570a11052be6178954956a1c59c8ebcbdb77d38e
tree9f3bbe2e6b6ad0ae246722db58dc88d2e84cf3af
parent4839b42a16635a3090f4fb374fb1fbe532ef0451
keymap.el: Ease up support for non-`kbd` formats.

While we want to standardize on the `kbd` syntax for user-facing code,
the internal vector representation of key sequences is not going away,
so let's not impose silly `key-description + key-parse` roundtrips.
Also, provide some support for packages stuck with user configs defined
to hold old-style key formats.

* lisp/keymap.el (keymap-set): Allow vectors as `key`.
(key-parse-old-format): New function, which stands out better than
`key-description` when searching for uses of the old syntax.

* list/outline.el (outline-minor-mode): Use it.
lisp/keymap.el
lisp/outline.el