aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/grep.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 241a5325a1c..9e63c1d0611 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -827,7 +827,7 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
827 command nil nil 'grep-history)) 827 command nil nil 'grep-history))
828 (add-to-history 'grep-history command)))) 828 (add-to-history 'grep-history command))))
829 (when command 829 (when command
830 (let ((default-directory dir)) 830 (let ((default-directory (or dir default-directory)))
831 ;; Setting process-setup-function makes exit-message-function work 831 ;; Setting process-setup-function makes exit-message-function work
832 ;; even when async processes aren't supported. 832 ;; even when async processes aren't supported.
833 (compilation-start (if (and grep-use-null-device null-device) 833 (compilation-start (if (and grep-use-null-device null-device)