]> git.eshelyaron.com Git - emacs.git/commit
Support a new ["..."] key binding syntax
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Oct 2021 18:48:01 +0000 (20:48 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Oct 2021 18:51:31 +0000 (20:51 +0200)
commite36d3fc452735d1a1a2293e18b8e4ef944f8793d
treea04aa0982fba243664c8f7bb04a5e7e220d1b6de
parent8122501fca00fe96165c46260ed8e297eb904373
Support a new ["..."] key binding syntax

* doc/lispref/keymaps.texi (Key Sequences):
(Changing Key Bindings): Document the various key syntaxes.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-define-key)
(byte-optimize-define-keymap)
(byte-optimize-define-keymap--define): New functions to check and
expand ["..."] syntax at compile time.

* src/keymap.c (Fdefine_key): Understand the ["..."] syntax.
(syms_of_keymap): Define `kbd' symbols.
doc/lispref/keymaps.texi
etc/NEWS
lisp/emacs-lisp/byte-opt.el
src/keymap.c