From 03a3018adcedfff6c7d4734bee2aac1259f4de01 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 13 Sep 2022 18:20:15 +0800 Subject: [PATCH] No need to call kpsewhich via a shell --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index b59d799..7ec0906 100644 --- a/config.org +++ b/config.org @@ -10288,7 +10288,7 @@ export to a PDF. (defun check-for-latex-packages (packages) (delq nil (mapcar (lambda (package) (unless - (= 0 (shell-command (format "kpsewhich %s.sty" package))) + (= 0 (call-process "kpsewhich" nil nil nil (concat package ".sty"))) package)) packages))) @@ -10300,7 +10300,7 @@ export to a PDF. '(defun check-for-latex-packages (packages) (delq nil (mapcar (lambda (package) (unless - (= 0 (shell-command (format "kpsewhich %s.sty" package))) + (= 0 (call-process "kpsewhich" nil nil nil (concat package ".sty"))) package)) packages)))) (pp-to-string