]> git.eshelyaron.com Git - emacs.git/commitdiff
(perform-replace): Restore match data after read-event.
authorRichard M. Stallman <rms@gnu.org>
Fri, 23 May 1997 17:34:11 +0000 (17:34 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 23 May 1997 17:34:11 +0000 (17:34 +0000)
lisp/replace.el

index 67c020263521d643ad25695dff0736aa52f8a05b..99e8921a26c5be79d676693dad5c3fe4280bac77 100644 (file)
@@ -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.