diff options
author | Karl Berry <karl@gnu.org> | 2005-03-29 14:56:14 +0000 |
---|---|---|
committer | Karl Berry <karl@gnu.org> | 2005-03-29 14:56:14 +0000 |
commit | 4b0db9d607f2688fc64f02623abca96d69a2a9d3 (patch) | |
tree | 74b54997246640d7853f0d3daf4054c168e55cc9 /lisp | |
parent | 33e3a12be4a3668575adf242b278070f1d9022b3 (diff) | |
download | emacs-4b0db9d607f2688fc64f02623abca96d69a2a9d3.tar.gz |
quote file name arg passed shell (from olive lin)
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/textmodes/tex-mode.el | 5 |
2 files changed, 8 insertions, 2 deletions
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 <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 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. |