From 97c23204b981d5ad88ea3c8ddff0f726798aff1b Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 16 Nov 2021 19:41:56 +0100 Subject: [PATCH] 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 8938197ecf0..b634487ba61 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. -- 2.39.5