aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-27 00:44:57 +0000
committerRichard M. Stallman1996-12-27 00:44:57 +0000
commit141aa68cfc8ba93e3ea6237ec8d86834069ae66e (patch)
tree255223c69d05c50c6ccf606f558058d844dd2b32
parent94d63a2336fb64e7b8006167b162a491874c035d (diff)
downloademacs-141aa68cfc8ba93e3ea6237ec8d86834069ae66e.tar.gz
emacs-141aa68cfc8ba93e3ea6237ec8d86834069ae66e.zip
(perform-replace): Request integers from match-data,
instead of asking for markers and converting them.
-rw-r--r--lisp/replace.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 205c8508090..ed02e051506 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -686,12 +686,7 @@ which will run faster and probably do exactly what you want."
686 ;; since lots of markers slow down editing. 686 ;; since lots of markers slow down editing.
687 (setq stack 687 (setq stack
688 (cons (cons (point) 688 (cons (cons (point)
689 (or replaced 689 (or replaced (match-data t)))
690 (mapcar (lambda (elt)
691 (and elt
692 (prog1 (marker-position elt)
693 (set-marker elt nil))))
694 (match-data))))
695 stack)))) 690 stack))))
696 (setq lastrepl (point))) 691 (setq lastrepl (point)))
697 (replace-dehighlight)) 692 (replace-dehighlight))