changeset 59605:b64dd2ff73f7

(grep-find): Copy from `grep' the condition for calling grep-compute-defaults.
author Richard M. Stallman <rms@gnu.org>
date Mon, 17 Jan 2005 23:51:34 +0000
parents 15fecef37804
children d331bbaca959
files lisp/progmodes/grep.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/grep.el	Mon Jan 17 23:50:23 2005 +0000
+++ b/lisp/progmodes/grep.el	Mon Jan 17 23:51:34 2005 +0000
@@ -527,7 +527,8 @@
 easily repeat a find command."
   (interactive
    (progn
-     (unless grep-find-command
+     (unless (and grep-command
+		  (or (not grep-use-null-device) (eq grep-use-null-device t)))
        (grep-compute-defaults))
      (if grep-find-command
 	 (list (read-from-minibuffer "Run find (like this): "