]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow binding keys in `query-replace-map'
authorJuri Linkov <juri@linkov.net>
Thu, 17 Sep 2020 18:10:17 +0000 (20:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 17 Sep 2020 18:43:40 +0000 (20:43 +0200)
* lisp/replace.el (perform-replace): Allow binding keys in
`query-replace-map' (bug#20687).

lisp/replace.el

index a751822c79a95eac5c28c5ee89ae0c0e7c0081d2..dc6e67ff40496fc853e8ea25edd380c947834c23 100644 (file)
@@ -2953,6 +2953,8 @@ characters."
                         (replace-dehighlight)
                         (save-excursion (recursive-edit))
                         (setq replaced t))
+                        ((commandp def t)
+                         (call-interactively def))
                        ;; Note: we do not need to treat `exit-prefix'
                        ;; specially here, since we reread
                        ;; any unrecognized character.