]> git.eshelyaron.com Git - emacs.git/commitdiff
(grep-find): Copy from `grep' the condition for calling grep-compute-defaults.
authorRichard M. Stallman <rms@gnu.org>
Mon, 17 Jan 2005 23:51:34 +0000 (23:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 17 Jan 2005 23:51:34 +0000 (23:51 +0000)
lisp/progmodes/grep.el

index 04fcae78ea64e07ff5536c3e6f28a053ba9b5890..8efa48aaa4868c9b3d6678716847651e2ede8de7 100644 (file)
@@ -527,7 +527,8 @@ This command uses a special history list for its arguments, so you can
 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): "