From cdf08f347a2125808c6989717d8e4b927326e97b Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 18 Jul 2010 07:50:43 +0200 Subject: [PATCH] LaTeX/pdf processing: Quote file argument for the shell * lisp/org-latex.el (org-export-as-pdf): Quote file argument for the shell. Patch by Gregory Grubbs. --- lisp/org-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index c971a692b..5e6d2f08f 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -836,7 +836,7 @@ when PUB-DIR is set, use this as the publishing directory." (with-current-buffer outbuf (erase-buffer)) (message "Processing LaTeX file...") (if (and cmds (symbolp cmds)) - (funcall cmds file) + (funcall cmds (shell-quote-argument file)) (while cmds (setq cmd (pop cmds)) (while (string-match "%b" cmd) -- 2.11.4.GIT