From ace4dad6d2edc4cb8b99637aeeda0cd3e0cb7e08 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 31 Mar 2005 00:24:57 +0000 Subject: [PATCH] shell-quote-argument, not comint-quote-filename --- lisp/ChangeLog | 12 +++++++++++- lisp/textmodes/tex-mode.el | 8 ++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 157e03282c4..f123732ed9e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,13 @@ +2005-03-31 Karl Berry + + * textmodes/tex-mode.el (tex-compile): shell-quote-argument, + not comint-quote-filename. + +2005-03-31 Olive Lin (tiny change) + + * textmodes/tex-mode.el (tex-start-tex) shell-quote-argument, + not comint-quote-filename. + 2005-03-31 Thien-Thi Nguyen * help-fns.el (help-with-tutorial): Revert last change. @@ -157,7 +167,7 @@ * vc.el (vc-do-command): Use a pipe for async processes, so password prompts don't show up at places where the user can't reply. -2005-03-29 Olive Lin +2005-03-29 Olive Lin (tiny change) * textmodes/tex-mode.el (tex-send-command): shell-quote-argument on the file name we pass to the inferior shell. diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 285f25dec88..cc9ed23c6be 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1887,8 +1887,8 @@ FILE is typically the output DVI or PDF file." (prog1 (file-name-directory (expand-file-name file)) (setq file (file-name-nondirectory file)))) (root (file-name-sans-extension file)) - (fspec (list (cons ?r (comint-quote-filename root)) - (cons ?f (comint-quote-filename file)))) + (fspec (list (cons ?r (shell-quote-argument root)) + (cons ?f (shell-quote-argument file)))) (default (tex-compile-default fspec))) (list default-directory (completing-read @@ -1909,14 +1909,14 @@ FILE is typically the output DVI or PDF file." (compile-command (if star (concat (substring command 0 star) - (comint-quote-filename file) + (shell-quote-argument file) (substring command (1+ star))) (concat command " " tex-start-options (if (< 0 (length tex-start-commands)) (concat (shell-quote-argument tex-start-commands) " ")) - (comint-quote-filename file))))) + (shell-quote-argument file))))) (tex-send-tex-command compile-command dir))) (defun tex-send-tex-command (cmd &optional dir) -- 2.39.2