aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-30 07:07:39 +0000
committerRichard M. Stallman1994-08-30 07:07:39 +0000
commit301a9d17972ce60d0ecbb6df74a81322c0667f2f (patch)
treeb8921a78ff7de1ac4a295750c0e0a53cf6511527 /lisp/replace.el
parent0daa17f3faa638c7ef7b0f8020c2c9a67892ccf6 (diff)
downloademacs-301a9d17972ce60d0ecbb6df74a81322c0667f2f.tar.gz
emacs-301a9d17972ce60d0ecbb6df74a81322c0667f2f.zip
(perform-replace): Restore match data before highlighting.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 65818667ede..7c6b8ea257d 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -528,13 +528,13 @@ which will run faster and probably do exactly what you want."
528 ;; Loop reading commands until one of them sets done, 528 ;; Loop reading commands until one of them sets done,
529 ;; which means it has finished handling this occurrence. 529 ;; which means it has finished handling this occurrence.
530 (while (not done) 530 (while (not done)
531 (store-match-data real-match-data)
531 (replace-highlight (match-beginning 0) (match-end 0)) 532 (replace-highlight (match-beginning 0) (match-end 0))
532 (message message from-string next-replacement) 533 (message message from-string next-replacement)
533 (setq key (read-event)) 534 (setq key (read-event))
534 (setq key (vector key)) 535 (setq key (vector key))
535 (setq def (lookup-key map key)) 536 (setq def (lookup-key map key))
536 ;; Restore the match data while we process the command. 537 ;; Restore the match data while we process the command.
537 (store-match-data real-match-data)
538 (cond ((eq def 'help) 538 (cond ((eq def 'help)
539 (with-output-to-temp-buffer "*Help*" 539 (with-output-to-temp-buffer "*Help*"
540 (princ 540 (princ