From 9423f6bf95e0bb5e797a94b53a0b50a84680b440 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 19 Nov 2024 02:35:38 -0500 Subject: [PATCH] fix(default): woman: ignore stderr from manpath Fix: #8168 Co-authored-by: rcoacci --- modules/config/default/config.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 876284755..d3b862515 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -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