diff lisp/textmodes/tex-mode.el @ 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 3b3b017d62ab
children 81b738b4c729
line wrap: on
line diff
--- 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.