]> git.eshelyaron.com Git - emacs.git/commitdiff
quote file name arg passed shell (from olive lin)
authorKarl Berry <karl@gnu.org>
Tue, 29 Mar 2005 14:56:14 +0000 (14:56 +0000)
committerKarl Berry <karl@gnu.org>
Tue, 29 Mar 2005 14:56:14 +0000 (14:56 +0000)
lisp/ChangeLog
lisp/textmodes/tex-mode.el

index 648d58d9ff7067d2aed64cede074593dfc52a4bb..a656b62248ce9e18d08b4b6078b9716e2ea95b57 100644 (file)
@@ -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
index 7e5d9fee78b68aced98ad4e6d3980c49860dc3b8..285f25dec882f0307df72c0a82728ca5fd36f4e4 100644 (file)
@@ -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.