mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
Make keymap-unset work
* lisp/keymap.el (keymap-unset): Fix key syntax (bug#51897).
This commit is contained in:
parent
4f47f10d9f
commit
97c23204b9
@ -119,7 +119,7 @@ a key in a child map, it will still shadow the same key in the
|
||||
parent keymap. Removing the binding will allow the key in the
|
||||
parent keymap to be used."
|
||||
(keymap--check key)
|
||||
(define-key keymap key nil remove))
|
||||
(define-key keymap (key-parse key) nil remove))
|
||||
|
||||
(defun keymap-substitute (olddef newdef keymap &optional oldmap prefix)
|
||||
"Replace OLDDEF with NEWDEF for any keys in KEYMAP now defined as OLDDEF.
|
||||
|
Loading…
Reference in New Issue
Block a user