aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJuri Linkov2012-09-21 00:57:13 +0300
committerJuri Linkov2012-09-21 00:57:13 +0300
commiteb2deaffd17e760b3ec945c58d43080e8a44767a (patch)
tree76bf1cbd8109f7975159bcec98bdaad2191a4547 /lisp/progmodes
parent5825610b41a7cf18f52c3d891ffb8c2a8359b1a0 (diff)
downloademacs-eb2deaffd17e760b3ec945c58d43080e8a44767a.tar.gz
emacs-eb2deaffd17e760b3ec945c58d43080e8a44767a.zip
* lisp/replace.el (query-replace-read-from): Use `read-regexp' instead
of `read-from-minibuffer' when `regexp-flag' is non-nil. (occur-read-primary-args): Use `read-regexp' instead of `read-string'. (multi-occur-in-matching-buffers): Use `read-regexp' instead of `read-from-minibuffer'. * lisp/isearch.el (isearch-occur): Use `read-regexp' instead of `read-string'. * lisp/dired.el (dired-read-regexp): Use `read-regexp' instead of `read-from-minibuffer'. * lisp/progmodes/grep.el (grep-read-regexp): Use `read-regexp' instead of `read-string'. Fixes: debbugs:7567
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/grep.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index a6ae42f86b1..c056b0f4e26 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -817,11 +817,11 @@ substitution string. Note dynamic scoping of variables.")
817(defun grep-read-regexp () 817(defun grep-read-regexp ()
818 "Read regexp arg for interactive grep." 818 "Read regexp arg for interactive grep."
819 (let ((default (grep-tag-default))) 819 (let ((default (grep-tag-default)))
820 (read-string 820 (read-regexp
821 (concat "Search for" 821 (concat "Search for"
822 (if (and default (> (length default) 0)) 822 (if (and default (> (length default) 0))
823 (format " (default \"%s\"): " default) ": ")) 823 (format " (default \"%s\"): " default) ": "))
824 nil 'grep-regexp-history default))) 824 default 'grep-regexp-history)))
825 825
826(defun grep-read-files (regexp) 826(defun grep-read-files (regexp)
827 "Read files arg for interactive grep." 827 "Read files arg for interactive grep."