# HG changeset patch # User Karl Berry # Date 1112108174 0 # Node ID e5a07aa840d96fd04b3589040718593bdc66795f # Parent f10b3e1c282f987d66d01a43535ef85a5c36d089 quote file name arg passed shell (from olive lin) diff -r f10b3e1c282f -r e5a07aa840d9 lisp/ChangeLog --- 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 + + * 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 -r f10b3e1c282f -r e5a07aa840d9 lisp/textmodes/tex-mode.el --- 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.