diff options
| author | Martin Rudalics | 2007-03-24 09:43:07 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2007-03-24 09:43:07 +0000 |
| commit | fcbd9af64f977d532e5de7dd8d7bedd4e8c93ea7 (patch) | |
| tree | 6df3f445dabc735c1f1218d699b63998b683229f | |
| parent | 937e7eee48da57e6fc30d9b55d73f2dd9ae7ceb4 (diff) | |
| download | emacs-fcbd9af64f977d532e5de7dd8d7bedd4e8c93ea7.tar.gz emacs-fcbd9af64f977d532e5de7dd8d7bedd4e8c93ea7.zip | |
(Man-support-local-filenames): Assure that
default-directory exists when doing call-process.
| -rw-r--r-- | lisp/man.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el index a6aced25e3d..0484c032e34 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -628,7 +628,14 @@ a new value." | |||
| 628 | (setq Man-support-local-filenames | 628 | (setq Man-support-local-filenames |
| 629 | (with-temp-buffer | 629 | (with-temp-buffer |
| 630 | (and (equal (condition-case nil | 630 | (and (equal (condition-case nil |
| 631 | (call-process manual-program nil t nil "--help") | 631 | (let ((default-directory |
| 632 | ;; Assure that `default-directory' exists | ||
| 633 | ;; and is readable. | ||
| 634 | (if (and (file-directory-p default-directory) | ||
| 635 | (file-readable-p default-directory)) | ||
| 636 | default-directory | ||
| 637 | (expand-file-name "~/")))) | ||
| 638 | (call-process manual-program nil t nil "--help")) | ||
| 632 | (error nil)) | 639 | (error nil)) |
| 633 | 0) | 640 | 0) |
| 634 | (progn | 641 | (progn |