From 20b8b7be22910454e6c151f3655bdd39f6e32c94 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Tue, 25 Jul 2017 23:37:17 +0100 Subject: [PATCH] Try to set woman-manpath from output of manpath command * lisp/woman.el (woman-manpath): Try running manpath, provided by recent man-db, to get man page paths. --- lisp/woman.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/woman.el b/lisp/woman.el index aa856c3..06d01bb 100644 --- a/lisp/woman.el +++ b/lisp/woman.el @@ -633,6 +633,13 @@ woman-manpath-add-locales (defcustom woman-manpath ;; Locales could also be added in woman-expand-directory-path. (or (woman-manpath-add-locales + (woman-parse-colon-path (condition-case nil + (string-trim-right (with-output-to-string + (with-current-buffer + standard-output + (call-process "manpath" nil t nil)))) + (error nil)))) + (woman-manpath-add-locales (woman-parse-colon-path (getenv "MANPATH"))) '("/usr/man" "/usr/share/man" "/usr/local/man")) "List of DIRECTORY TREES to search for UN*X manual files. -- 2.7.4