aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/man.el9
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