(lgrep): Ensure that `default-directory' is always non-nil. (Bug#4052)
This commit is contained in:
parent
fc5bdf6cb1
commit
770f36f8bd
1 changed files with 1 additions and 1 deletions
|
|
@ -827,7 +827,7 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
|
|||
command nil nil 'grep-history))
|
||||
(add-to-history 'grep-history command))))
|
||||
(when command
|
||||
(let ((default-directory dir))
|
||||
(let ((default-directory (or dir default-directory)))
|
||||
;; Setting process-setup-function makes exit-message-function work
|
||||
;; even when async processes aren't supported.
|
||||
(compilation-start (if (and grep-use-null-device null-device)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue