mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
(Man-support-local-filenames): Assure that
default-directory exists when doing call-process.
This commit is contained in:
parent
937e7eee48
commit
fcbd9af64f
@ -628,7 +628,14 @@ a new value."
|
||||
(setq Man-support-local-filenames
|
||||
(with-temp-buffer
|
||||
(and (equal (condition-case nil
|
||||
(call-process manual-program nil t nil "--help")
|
||||
(let ((default-directory
|
||||
;; Assure that `default-directory' exists
|
||||
;; and is readable.
|
||||
(if (and (file-directory-p default-directory)
|
||||
(file-readable-p default-directory))
|
||||
default-directory
|
||||
(expand-file-name "~/"))))
|
||||
(call-process manual-program nil t nil "--help"))
|
||||
(error nil))
|
||||
0)
|
||||
(progn
|
||||
|
Loading…
Reference in New Issue
Block a user