]> git.eshelyaron.com Git - emacs.git/commit
Lift {global,local}-key-binding to Lisp
authorStefan Kangas <stefan@marxist.se>
Wed, 13 Jan 2021 17:54:09 +0000 (18:54 +0100)
committerStefan Kangas <stefan@marxist.se>
Wed, 13 Jan 2021 17:54:09 +0000 (18:54 +0100)
commita9658cd5b07e88a5d413cbb4dfd8f9d9d0c8bbf5
tree6c4703b44fd8f46052abce1dddb3ab26741dc5e3
parentbe9b7e83bc4191aff01c692be0f7a156ec4056da
Lift {global,local}-key-binding to Lisp

* lisp/subr.el (local-key-binding, global-key-binding): New defuns.
* src/keymap.c (Flocal_key_binding, Fglobal_key_binding): Remove DEFUNs.
(syms_of_keymap): Remove defsubrs for above DEFUNs.
* test/lisp/subr-tests.el (subr-test-local-key-binding)
(subr-test-global-key-binding): New tests.
lisp/subr.el
src/keymap.c
test/lisp/subr-tests.el