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
|
||||
;; 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
|
||||
|
Reference in New Issue
Block a user