changeset 61092:e5a07aa840d9

quote file name arg passed shell (from olive lin)
author Karl Berry <karl@gnu.org>
date Tue, 29 Mar 2005 14:56:14 +0000
parents f10b3e1c282f
children 27c2765e06c8
files lisp/ChangeLog lisp/textmodes/tex-mode.el
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Mar 29 14:18:00 2005 +0000
+++ b/lisp/ChangeLog	Tue Mar 29 14:56:14 2005 +0000
@@ -1,3 +1,8 @@
+2005-03-29  Olive Lin  <olive.lin@versateladsl.be>
+
+	* 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  <stahl@eos.franken.de>  (tiny change)
 
 	* progmodes/which-func.el (which-function): Be robust in the face of an
--- a/lisp/textmodes/tex-mode.el	Tue Mar 29 14:18:00 2005 +0000
+++ b/lisp/textmodes/tex-mode.el	Tue Mar 29 14:56:14 2005 +0000
@@ -1562,8 +1562,9 @@
 	    (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.