# HG changeset patch # User Stefan Monnier # Date 1117485451 0 # Node ID 86b39840744624b41c0790d70fcada37d3258666 # Parent af6dffb5d18085571235aaa00dc8a4bbcd344d07 (tex-compile-commands, tex-compile, tex-start-tex): Undo all but the last part of the 2005-05-28 change. diff -r af6dffb5d180 -r 86b398407446 lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Mon May 30 18:06:02 2005 +0000 +++ b/lisp/textmodes/tex-mode.el Mon May 30 20:37:31 2005 +0000 @@ -1633,11 +1633,11 @@ (defvar tex-compile-commands '(((concat "pdf" tex-command " " (if (< 0 (length tex-start-commands)) - tex-start-commands) " %f") + (shell-quote-argument tex-start-commands)) " %f") t "%r.pdf") ((concat tex-command " " (if (< 0 (length tex-start-commands)) - tex-start-commands) " %f") + (shell-quote-argument tex-start-commands)) " %f") t "%r.dvi") ("yap %r &" "%r.dvi") ("xdvi %r &" "%r.dvi") @@ -1900,8 +1900,8 @@ (prog1 (file-name-directory (expand-file-name file)) (setq file (file-name-nondirectory file)))) (root (file-name-sans-extension file)) - (fspec (list (cons ?r root) - (cons ?f 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 @@ -1922,13 +1922,14 @@ (compile-command (if star (concat (substring command 0 star) - file + (shell-quote-argument file) (substring command (1+ star))) (concat command " " tex-start-options (if (< 0 (length tex-start-commands)) - (concat tex-start-commands " ")) - file)))) + (concat + (shell-quote-argument tex-start-commands) " ")) + (shell-quote-argument file))))) (tex-send-tex-command compile-command dir))) (defun tex-send-tex-command (cmd &optional dir)