Using 'call-process to launch latex program

* org.el (org-create-formula-image-with-imagemagick): Use 'call-process
to launch latex so that no shell output buffer will be shown when previewing
formulas.
This commit is contained in:
Feng Shu 2012-05-01 18:51:17 +08:00 committed by Bastien Guerry
parent 24dff8f067
commit be1727a68f
1 changed files with 2 additions and 1 deletions

View File

@ -17312,7 +17312,8 @@ inspection."
(save-match-data
(shell-quote-argument (file-name-directory texfile)))
t t cmd)))
(shell-command cmd)))
(setq cmd (split-string cmd))
(eval (append (list 'call-process (pop cmd) nil nil nil) cmd))))
(error nil))
(cd dir))
(if (not (file-exists-p pdffile))