aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-05-23 17:34:11 +0000
committerRichard M. Stallman <[email protected]>1997-05-23 17:34:11 +0000
commitf5e52cd3037bfb261c7346ec9f6ca79f9f23eb89 (patch)
tree1e115bb7bb25f305fe54c48e92242ea659175d1a /lisp/replace.el
parent6418ea161998db00f53de089b841fc2a2d6cb394 (diff)
(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 67c0202635..99e8921a26 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -646,6 +646,9 @@ which will run faster and probably do exactly what you want."
(let ((message-log-max nil))
(message message from-string next-replacement))
(setq key (read-event))
+ ;; Necessary in case something happens during read-event
+ ;; that clobbers the match data.
+ (store-match-data real-match-data)
(setq key (vector key))
(setq def (lookup-key map key))
;; Restore the match data while we process the command.