]> git.eshelyaron.com Git - emacs.git/commit
Avoid "control-control-KEY" (bug#55738)
authorMattias Engdegård <mattiase@acm.org>
Sat, 18 Jun 2022 09:08:23 +0000 (11:08 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 18 Jun 2022 09:22:58 +0000 (11:22 +0200)
commite321f87aa76c959faed784851b65ab7ada3fd129
tree0f3450adff77e3a73df7b5786c39333b58e09e97
parent15238e2ed0eeba82fd43efbbd4b9237394f9fd55
Avoid "control-control-KEY" (bug#55738)

Constructs such as ?\C-^@ or ?\C-\C-m literally apply a Control
modifier twice which doesn't make sense at all.  What is really meant
is a C0 base character with the Control modifier bit set.
This change is only stylistic in nature.

* lisp/edmacro.el (edmacro-format-keys):
* lisp/keymap.el (key-parse):
* lisp/subr.el (event-modifiers, event-basic-type):
* test/lisp/subr-tests.el (subr-test-kbd):
Use \0 and \r instead of ^@ and \C-m to represent NUL and RET
when combined with other modifiers.
lisp/edmacro.el
lisp/keymap.el
lisp/subr.el
test/lisp/subr-tests.el