From 6380e5a7098ee06cbc2b94a281724e851620275a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 29 Mar 2005 14:56:14 +0000 Subject: [PATCH] quote file name arg passed shell (from olive lin) --- lisp/ChangeLog | 5 +++++ 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 + + * 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 --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. -- 2.39.2