]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak remapping fix for set-transient-map
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 May 2022 12:54:40 +0000 (14:54 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 May 2022 12:55:03 +0000 (14:55 +0200)
* lisp/subr.el (set-transient-map): The remapping doesn't have to
be in this map.

lisp/subr.el

index 137e298cd84ab6f0f3a962df53ed647738cf89b7..adcbd94744edbeaeff8e0b2c8195b0e0af4a9288 100644 (file)
@@ -6052,7 +6052,7 @@ to deactivate this transient map, regardless of KEEP-PRED."
                           ;; We may have a remapped command, so chase
                           ;; down that.
                           (when (and mc (symbolp mc))
-                            (setq mc (or (command-remapping mc nil map) mc)))
+                            (setq mc (or (command-remapping mc) mc)))
                           ;; If the key is unbound `this-command` is
                           ;; nil and so is `mc`.
                           (and mc (eq this-command mc))))