changeset 75208:21049884253f

(perform-replace): Don't clear NODENT when computing the replacement string.
author Richard M. Stallman <rms@gnu.org>
date Fri, 12 Jan 2007 22:32:46 +0000
parents eab5477b4d91
children 7f37449a1dd3
files lisp/replace.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/replace.el	Fri Jan 12 20:30:51 2007 +0000
+++ b/lisp/replace.el	Fri Jan 12 22:32:46 2007 +0000
@@ -1406,6 +1406,8 @@
 	(search-string from-string)
 	(real-match-data nil)		; the match data for the current match
 	(next-replacement nil)
+	;; This is non-nil if we know there is nothing for the user
+	;; to edit in the replacement.
 	(noedit nil)
 	(keep-going t)
 	(stack nil)
@@ -1517,8 +1519,7 @@
 	      (set-match-data real-match-data)
 	      (setq next-replacement
 		    (funcall (car replacements) (cdr replacements)
-			     replace-count)
-		    noedit nil))
+			     replace-count) nil))
 	    (if (not query-flag)
 		(let ((inhibit-read-only
 		       query-replace-skip-read-only))