changeset 18443:393843d18bec

(perform-replace): When matching lookahead, use markers rather than integers, since a replacement may invalidate integers.
author Paul Eggert <eggert@twinsun.com>
date Wed, 25 Jun 1997 05:30:02 +0000
parents 83a349d63da6
children 825ff9e2e44e
files lisp/replace.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/replace.el	Wed Jun 25 05:07:36 1997 +0000
+++ b/lisp/replace.el	Wed Jun 25 05:30:02 1997 +0000
@@ -630,7 +630,7 @@
 		(and nonempty-match
 		     (or (not regexp-flag)
 			 (and (looking-at search-string)
-			      (match-data t)))))
+			      (match-data)))))
 
 	  ;; If time for a change, advance to next replacement string.
 	  (if (and (listp replacements)
@@ -727,7 +727,7 @@
 		       ;; can match again just after this match.
 		       (if (and regexp-flag nonempty-match)
 			   (setq match-again (and (looking-at search-string)
-						  (match-data t)))))
+						  (match-data)))))
 		      ((eq def 'delete-and-edit)
 		       (delete-region (match-beginning 0) (match-end 0))
 		       (store-match-data