aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorEli Zaretskii2010-03-20 07:14:01 -0400
committerEli Zaretskii2010-03-20 07:14:01 -0400
commitf2cdb04ac04fb8f9f92bce11df6e4a020720208b (patch)
tree4d231ff66e4145ce8967ed0c4ab71b364d05675f /lisp/replace.el
parent8eef7665fa98baae93da5151c27ca0db4d1d6f5b (diff)
parent22e8757456ea6608246d9c81a83f6c5119f2e1fb (diff)
downloademacs-f2cdb04ac04fb8f9f92bce11df6e4a020720208b.tar.gz
emacs-f2cdb04ac04fb8f9f92bce11df6e4a020720208b.zip
Merge from mainline.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 57b29442605..92edd2e2657 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -33,7 +33,10 @@
33 :type 'boolean 33 :type 'boolean
34 :group 'matching) 34 :group 'matching)
35 35
36(defvar query-replace-history nil) 36(defvar query-replace-history nil
37 "Default history list for query-replace commands.
38See `query-replace-from-history-variable' and
39`query-replace-to-history-variable'.")
37 40
38(defvar query-replace-defaults nil 41(defvar query-replace-defaults nil
39 "Default values of FROM-STRING and TO-STRING for `query-replace'. 42 "Default values of FROM-STRING and TO-STRING for `query-replace'.
@@ -394,12 +397,13 @@ Fourth and fifth arg START and END specify the region to operate on."
394 (car regexp-search-ring) 397 (car regexp-search-ring)
395 (read-from-minibuffer "Map query replace (regexp): " 398 (read-from-minibuffer "Map query replace (regexp): "
396 nil nil nil 399 nil nil nil
397 'query-replace-history nil t))) 400 query-replace-from-history-variable
401 nil t)))
398 (to (read-from-minibuffer 402 (to (read-from-minibuffer
399 (format "Query replace %s with (space-separated strings): " 403 (format "Query replace %s with (space-separated strings): "
400 (query-replace-descr from)) 404 (query-replace-descr from))
401 nil nil nil 405 nil nil nil
402 'query-replace-history from t))) 406 query-replace-to-history-variable from t)))
403 (list from to 407 (list from to
404 (and current-prefix-arg 408 (and current-prefix-arg
405 (prefix-numeric-value current-prefix-arg)) 409 (prefix-numeric-value current-prefix-arg))