aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-23 17:34:11 +0000
committerRichard M. Stallman1997-05-23 17:34:11 +0000
commitf5e52cd3037bfb261c7346ec9f6ca79f9f23eb89 (patch)
tree1e115bb7bb25f305fe54c48e92242ea659175d1a /lisp/replace.el
parent6418ea161998db00f53de089b841fc2a2d6cb394 (diff)
downloademacs-f5e52cd3037bfb261c7346ec9f6ca79f9f23eb89.tar.gz
emacs-f5e52cd3037bfb261c7346ec9f6ca79f9f23eb89.zip
(perform-replace): Restore match data after read-event.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 67c02026352..99e8921a26c 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -646,6 +646,9 @@ which will run faster and probably do exactly what you want."
646 (let ((message-log-max nil)) 646 (let ((message-log-max nil))
647 (message message from-string next-replacement)) 647 (message message from-string next-replacement))
648 (setq key (read-event)) 648 (setq key (read-event))
649 ;; Necessary in case something happens during read-event
650 ;; that clobbers the match data.
651 (store-match-data real-match-data)
649 (setq key (vector key)) 652 (setq key (vector key))
650 (setq def (lookup-key map key)) 653 (setq def (lookup-key map key))
651 ;; Restore the match data while we process the command. 654 ;; Restore the match data while we process the command.