diff options
author | Lute Kamstra <lute@gnu.org> | 2005-02-25 11:45:05 +0000 |
---|---|---|
committer | Lute Kamstra <lute@gnu.org> | 2005-02-25 11:45:05 +0000 |
commit | a0b497c53be2edd8140e4e61fa455f2c051aa66f (patch) | |
tree | 055b17e8cb20145b878a57880c7af84512eac940 /lisp/replace.el | |
parent | ff4d39263e40ffb88d9aee64f2e35b0e921c6553 (diff) | |
download | emacs-a0b497c53be2edd8140e4e61fa455f2c051aa66f.tar.gz |
(query-replace-read-from): Fix 2005-02-19 change.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r-- | lisp/replace.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 2c60cd006f1..d2a0370f93e 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -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 @@ wants to replace FROM with TO." nil t t)))) (if (and (zerop (length from)) lastto lastfrom) (progn - (cons lastfrom - (query-replace-compile-replacement lastto regexp-flag)) (set query-replace-from-history-variable - (cdr (symbol-value query-replace-from-history-variable)))) + (cdr (symbol-value query-replace-from-history-variable))) + (cons lastfrom + (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) |