]> git.eshelyaron.com Git - emacs.git/commit
Pretty-print keys without <> around modifiers (bug#45536)
authorMattias Engdegård <mattiase@acm.org>
Tue, 29 Dec 2020 15:55:06 +0000 (16:55 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 5 Jan 2021 10:28:58 +0000 (11:28 +0100)
commit7f16f177270e8e69cb8b78fb502caae3653a32cf
tree457b69dbfefe25efde1217b8432ac882986b65c7
parente6617f0dffbb1ca7a72287621c9c38c8a72145aa
Pretty-print keys without <> around modifiers (bug#45536)

Be consistent when pretty-printing keys: put modifiers outside <>,
thus the more logical C-M-<return> instead of <C-M-return>.

* src/keymap.c (Fsingle_key_description):
Skip modifier prefix before adding <>.
* doc/lispref/help.texi (Describing Characters): Update example.
* doc/lispref/debugging.texi (Backtraces):
* doc/lispref/minibuf.texi (Text from Minibuffer):
Use @kbd instead of @key.
* etc/NEWS: Announce the change.
* test/src/keymap-tests.el (keymap--key-description):
* test/lisp/subr-tests.el (subr--kbd): New tests.
doc/lispref/debugging.texi
doc/lispref/help.texi
doc/lispref/minibuf.texi
etc/NEWS
src/keymap.c
test/lisp/subr-tests.el
test/src/keymap-tests.el