summaryrefslogtreecommitdiff
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-03-17 23:44:36 -0700
committerGlenn Morris <rgm@gnu.org>2010-03-17 23:44:36 -0700
commit84d0a5f881b8e2d11ef537dbda4acfe64c067e93 (patch)
tree4627e9bb55352c2e15b6a0194c68d659a2440f3f /lisp/replace.el
parentcbeed5af844bb9d00ada02aec231ee5276f78ad7 (diff)
downloademacs-84d0a5f881b8e2d11ef537dbda4acfe64c067e93.tar.gz
Use query-replace-{from,to}-history-variable in more places.
* replace.el (query-replace-history): Give it a doc string. (map-query-replace-regexp): Use query-replace-from-history-variable and query-replace-to-history-variable.
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 @@
:type 'boolean
:group 'matching)
-(defvar query-replace-history nil)
+(defvar query-replace-history nil
+ "Default history list for query-replace commands.
+See `query-replace-from-history-variable' and
+`query-replace-to-history-variable'.")
(defvar query-replace-defaults nil
"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."
(car regexp-search-ring)
(read-from-minibuffer "Map query replace (regexp): "
nil nil nil
- 'query-replace-history nil t)))
+ query-replace-from-history-variable
+ nil t)))
(to (read-from-minibuffer
(format "Query replace %s with (space-separated strings): "
(query-replace-descr from))
nil nil nil
- 'query-replace-history from t)))
+ query-replace-to-history-variable from t)))
(list from to
(and current-prefix-arg
(prefix-numeric-value current-prefix-arg))