[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/replace.el
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/replace.el |
Date: |
Fri, 04 Apr 2003 01:23:00 -0500 |
Index: emacs/lisp/replace.el
diff -c emacs/lisp/replace.el:1.164 emacs/lisp/replace.el:1.165
*** emacs/lisp/replace.el:1.164 Mon Feb 24 11:45:47 2003
--- emacs/lisp/replace.el Wed Mar 5 15:51:10 2003
***************
*** 70,79 ****
(let (from to)
(if query-replace-interactive
(setq from (car (if regexp-flag regexp-search-ring search-ring)))
! (setq from (read-from-minibuffer (format "%s: " string)
! nil nil nil
! query-replace-from-history-variable
! nil t))
;; Warn if user types \n or \t, but don't reject the input.
(if (string-match "\\\\[nt]" from)
(let ((match (match-string 0 from)))
--- 70,83 ----
(let (from to)
(if query-replace-interactive
(setq from (car (if regexp-flag regexp-search-ring search-ring)))
! ;; The save-excursion here is in case the user marks and copies
! ;; a region in order to specify the minibuffer input.
! ;; That should not clobber the region for the query-replace itself.
! (save-excursion
! (setq from (read-from-minibuffer (format "%s: " string)
! nil nil nil
! query-replace-from-history-variable
! nil t)))
;; Warn if user types \n or \t, but don't reject the input.
(if (string-match "\\\\[nt]" from)
(let ((match (match-string 0 from)))
***************
*** 84,92 ****
(message "Note: `\\t' here doesn't match a tab; to do that, just
type TAB")))
(sit-for 2))))
! (setq to (read-from-minibuffer (format "%s %s with: " string from)
! nil nil nil
! query-replace-to-history-variable from t))
(list from to current-prefix-arg)))
(defun query-replace (from-string to-string &optional delimited start end)
--- 88,97 ----
(message "Note: `\\t' here doesn't match a tab; to do that, just
type TAB")))
(sit-for 2))))
! (save-excursion
! (setq to (read-from-minibuffer (format "%s %s with: " string from)
! nil nil nil
! query-replace-to-history-variable from t)))
(list from to current-prefix-arg)))
(defun query-replace (from-string to-string &optional delimited start end)
***************
*** 252,258 ****
from)
nil nil nil
'query-replace-history from t))
! (list from to current-prefix-arg
(if (and transient-mark-mode mark-active)
(region-beginning))
(if (and transient-mark-mode mark-active)
--- 257,265 ----
from)
nil nil nil
'query-replace-history from t))
! (list from to
! (and current-prefix-arg
! (prefix-numeric-value current-prefix-arg))
(if (and transient-mark-mode mark-active)
(region-beginning))
(if (and transient-mark-mode mark-active)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/replace.el,
Miles Bader <=