diff options
author | Stefan Monnier <[email protected]> | 2008-03-20 19:56:58 +0000 |
---|---|---|
committer | Stefan Monnier <[email protected]> | 2008-03-20 19:56:58 +0000 |
commit | 286d4b3b7da0dbaf579923bf1b6e295b661de2e9 (patch) | |
tree | eb03f2f322c70af33075ed4ed67d92ee8f533c95 /lisp/progmodes/grep.el | |
parent | 7c6d20657f5c6928a80c1603d46e9450e1c962e6 (diff) |
* progmodes/compile.el (compile):
* progmodes/grep.el (grep, grep-find): Use read-shell-command.
Diffstat (limited to 'lisp/progmodes/grep.el')
-rw-r--r-- | lisp/progmodes/grep.el | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index e1bce49722..6cd5c657ae 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -644,11 +644,10 @@ list is empty)." (progn (grep-compute-defaults) (let ((default (grep-default-command))) - (list (read-from-minibuffer "Run grep (like this): " - (if current-prefix-arg - default grep-command) - nil nil 'grep-history - (if current-prefix-arg nil default)))))) + (list (read-shell-command "Run grep (like this): " + (if current-prefix-arg default grep-command) + 'grep-history + (if current-prefix-arg nil default)))))) ;; Setting process-setup-function makes exit-message-function work ;; even when async processes aren't supported. @@ -671,9 +670,8 @@ easily repeat a find command." (progn (grep-compute-defaults) (if grep-find-command - (list (read-from-minibuffer "Run find (like this): " - grep-find-command nil nil - 'grep-find-history)) + (list (read-shell-command "Run find (like this): " + grep-find-command 'grep-find-history)) ;; No default was set (read-string "compile.el: No `grep-find-command' command available. Press RET.") |