emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 97c2320: Make keymap-unset work


From: Lars Ingebrigtsen
Subject: master 97c2320: Make keymap-unset work
Date: Tue, 16 Nov 2021 14:01:26 -0500 (EST)

branch: master
commit 97c23204b981d5ad88ea3c8ddff0f726798aff1b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make keymap-unset work
    
    * lisp/keymap.el (keymap-unset): Fix key syntax (bug#51897).
---
 lisp/keymap.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/keymap.el b/lisp/keymap.el
index 8938197..b634487 100644
--- a/lisp/keymap.el
+++ b/lisp/keymap.el
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]