# HG changeset patch # User Lute Kamstra # Date 1109331851 0 # Node ID 4d79094ee4557ef7002adca1abc905027c9ee5dc # Parent bbe4bd573f0c624e883a0e06d4c6f46fda177d3a (query-replace-read-from): Fix 2005-02-19 change. diff -r bbe4bd573f0c -r 4d79094ee455 lisp/replace.el --- 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)