fix(default): woman: ignore stderr from manpath

Fix: #8168
Co-authored-by: rcoacci <rcoacci@users.noreply.github.com>
This commit is contained in:
Henrik Lissner
2024-11-19 02:35:38 -05:00
parent 2b0013db1c
commit 9423f6bf95

View File

@ -60,15 +60,15 @@
;; The woman-manpath default value does not necessarily match man. If we have
;; man available but aren't using it for performance reasons, we can extract
;; its manpath.
(let ((manpath (cond
((executable-find "manpath")
(split-string (cdr (doom-call-process "manpath"))
path-separator t))
((executable-find "man")
(split-string (cdr (doom-call-process "man" "--path"))
path-separator t)))))
(when manpath
(setq woman-manpath manpath))))
(when-let*
((path (cond
((executable-find "manpath")
(split-string (cdr (doom-call-process "manpath" "-q"))
path-separator t))
((executable-find "man")
(split-string (cdr (doom-call-process "man" "--path"))
path-separator t)))))
(setq woman-manpath path)))
;;;###package tramp