From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Quote path argument in org-latex Date: Sun, 18 Jul 2010 07:51:00 +0200 Message-ID: <053DB8D0-A680-4D88-99D9-B048945ABFD6@gmail.com> References: <874ofxa0uv.fsf@dynapse.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=49445 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaMmH-0007Jh-E2 for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 01:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaMmF-0000PJ-U4 for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 01:51:05 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:55284) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaMmF-0000PD-Ok for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 01:51:03 -0400 Received: by ewy28 with SMTP id 28so1216333ewy.0 for ; Sat, 17 Jul 2010 22:51:03 -0700 (PDT) In-Reply-To: <874ofxa0uv.fsf@dynapse.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Gregory J. Grubbs" Cc: emacs-orgmode@gnu.org Applied, thanks - Carsten On Jul 18, 2010, at 6:08 AM, Gregory J. Grubbs wrote: > > Patch quotes paths to protect from interpretation by the shell > > diff --git a/lisp/org-latex.el b/lisp/org-latex.el > index b6a7769..156dbcf 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) > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten