From bf4ec22239825a02dd1d89380064aa3df91fded0 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 14 Jun 2003 19:56:50 +0000 Subject: [PATCH] (tex-compile-commands): Handle tex-start-commands like tex-start-tex does. --- lisp/textmodes/tex-mode.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 583c106c173..a7b2d8e8f81 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1577,10 +1577,12 @@ If NOT-ALL is non-nil, save the `.dvi' file." (defvar tex-compile-commands '(((concat "pdf" tex-command - " " (shell-quote-argument tex-start-commands) " %f") + " " (if (< 0 (length tex-start-commands)) + (shell-quote-argument tex-start-commands)) " %f") t "%r.pdf") ((concat tex-command - " " (shell-quote-argument tex-start-commands) " %f") + " " (if (< 0 (length tex-start-commands)) + (shell-quote-argument tex-start-commands)) " %f") t "%r.dvi") ("xdvi %r &" "%r.dvi") ("advi %r &" "%r.dvi") -- 2.39.2