changeset 60240:4d79094ee455

(query-replace-read-from): Fix 2005-02-19 change.
author Lute Kamstra <lute@gnu.org>
date Fri, 25 Feb 2005 11:44:11 +0000
parents bbe4bd573f0c
children 7d3fced26ee9
files lisp/replace.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/replace.el	Fri Feb 25 01:52:09 2005 +0000
+++ b/lisp/replace.el	Fri Feb 25 11:44:11 2005 +0000
@@ -1,7 +1,7 @@
 ;;; replace.el --- replace commands for Emacs
 
 ;; Copyright (C) 1985, 1986, 1987, 1992, 1994, 1996, 1997, 2000, 2001, 2002,
-;;   2003, 2004  Free Software Foundation, Inc.
+;;   2003, 2004, 2005  Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
 
@@ -116,10 +116,10 @@
 	       nil t t))))
       (if (and (zerop (length from)) lastto lastfrom)
 	  (progn
+	    (set query-replace-from-history-variable
+		 (cdr (symbol-value query-replace-from-history-variable)))
 	    (cons lastfrom
-		  (query-replace-compile-replacement lastto regexp-flag))
-	    (set query-replace-from-history-variable
-		 (cdr (symbol-value query-replace-from-history-variable))))
+		  (query-replace-compile-replacement lastto regexp-flag)))
 	;; Warn if user types \n or \t, but don't reject the input.
 	(and regexp-flag
 	     (string-match "\\(\\`\\|[^\\]\\)\\(\\\\\\\\\\)*\\(\\\\[nt]\\)" from)