diff options
| author | Juri Linkov | 2009-08-12 20:54:46 +0000 |
|---|---|---|
| committer | Juri Linkov | 2009-08-12 20:54:46 +0000 |
| commit | 770f36f8bdac1f78dfe2d0395d64283bfa6ab4d1 (patch) | |
| tree | bf831da29c9fda2d7eea539ca09de9decdecc226 /lisp | |
| parent | fc5bdf6cb134c268b0d0ae28b8639576d6d32eb7 (diff) | |
| download | emacs-770f36f8bdac1f78dfe2d0395d64283bfa6ab4d1.tar.gz emacs-770f36f8bdac1f78dfe2d0395d64283bfa6ab4d1.zip | |
(lgrep): Ensure that `default-directory' is always non-nil. (Bug#4052)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/grep.el | 2 |
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) |