]> git.eshelyaron.com Git - emacs.git/commitdiff
Make keymap-unset work
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Nov 2021 18:41:56 +0000 (19:41 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 16 Nov 2021 18:42:09 +0000 (19:42 +0100)
* lisp/keymap.el (keymap-unset): Fix key syntax (bug#51897).

lisp/keymap.el

index 8938197ecf0ba0013a972298034a490bb1ab2e3e..b634487ba61c2300563b1d73060c294f79d33b1a 100644 (file)
@@ -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.