diff lisp/replace.el @ 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 85f04f438e03
children 77391bae98f1 e4694597cbf4
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)