From: Karl Berry Date: Tue, 29 Mar 2005 14:56:14 +0000 (+0000) Subject: quote file name arg passed shell (from olive lin) X-Git-Tag: ttn-vms-21-2-B4~1396 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6380e5a7098ee06cbc2b94a281724e851620275a;p=emacs.git quote file name arg passed shell (from olive lin) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 648d58d9ff7..a656b62248c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-03-29 Olive Lin + + * textmodes/tex-mode.el (tex-send-command): shell-quote-argument + on the file name we pass to the inferior shell. + 2005-03-29 Stephan Stahl (tiny change) * progmodes/which-func.el (which-function): Be robust in the face of an diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 7e5d9fee78b..285f25dec88 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1562,8 +1562,9 @@ Return the process in which TeX is running." (concat (if file (if star (concat (substring cmd 0 star) - file (substring cmd (1+ star))) - (concat cmd " " file)) + (shell-quote-argument file) + (substring cmd (1+ star))) + (concat cmd " " (shell-quote-argument file))) cmd) (if background "&" "")))) ;; Switch to buffer before checking for subproc output in it.