aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-03-17 23:44:36 -0700
committerGlenn Morris2010-03-17 23:44:36 -0700
commit84d0a5f881b8e2d11ef537dbda4acfe64c067e93 (patch)
tree4627e9bb55352c2e15b6a0194c68d659a2440f3f
parentcbeed5af844bb9d00ada02aec231ee5276f78ad7 (diff)
downloademacs-84d0a5f881b8e2d11ef537dbda4acfe64c067e93.tar.gz
emacs-84d0a5f881b8e2d11ef537dbda4acfe64c067e93.zip
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.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/replace.el10
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 42e857db9f5..c45096b9742 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12010-03-18 Glenn Morris <rgm@gnu.org> 12010-03-18 Glenn Morris <rgm@gnu.org>
2 2
3 * replace.el (query-replace-history): Give it a doc string.
4 (map-query-replace-regexp): Use query-replace-from-history-variable
5 and query-replace-to-history-variable.
6
3 * mail/hashcash.el (declare-function): Remove duplicate definition. 7 * mail/hashcash.el (declare-function): Remove duplicate definition.
4 8
5 * mail/emacsbug.el (report-emacs-bug-pretest-address): 9 * mail/emacsbug.el (report-emacs-bug-pretest-address):
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))