From: Lars Ingebrigtsen Date: Tue, 16 Nov 2021 18:41:56 +0000 (+0100) Subject: Make keymap-unset work X-Git-Tag: emacs-29.0.90~2852^2~249 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=97c23204b981d5ad88ea3c8ddff0f726798aff1b;p=emacs.git Make keymap-unset work * lisp/keymap.el (keymap-unset): Fix key syntax (bug#51897). --- 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.