mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(default): woman: ignore stderr from manpath
Fix: #8168 Co-authored-by: rcoacci <rcoacci@users.noreply.github.com>
This commit is contained in:
@ -60,15 +60,15 @@
|
|||||||
;; The woman-manpath default value does not necessarily match man. If we have
|
;; 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
|
;; man available but aren't using it for performance reasons, we can extract
|
||||||
;; its manpath.
|
;; its manpath.
|
||||||
(let ((manpath (cond
|
(when-let*
|
||||||
|
((path (cond
|
||||||
((executable-find "manpath")
|
((executable-find "manpath")
|
||||||
(split-string (cdr (doom-call-process "manpath"))
|
(split-string (cdr (doom-call-process "manpath" "-q"))
|
||||||
path-separator t))
|
path-separator t))
|
||||||
((executable-find "man")
|
((executable-find "man")
|
||||||
(split-string (cdr (doom-call-process "man" "--path"))
|
(split-string (cdr (doom-call-process "man" "--path"))
|
||||||
path-separator t)))))
|
path-separator t)))))
|
||||||
(when manpath
|
(setq woman-manpath path)))
|
||||||
(setq woman-manpath manpath))))
|
|
||||||
|
|
||||||
|
|
||||||
;;;###package tramp
|
;;;###package tramp
|
||||||
|
Reference in New Issue
Block a user