No need to call kpsewhich via a shell

This commit is contained in:
TEC 2022-09-13 18:20:15 +08:00
parent 2b0ccf9d0c
commit 03a3018adc
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 2 additions and 2 deletions

View File

@ -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