# HG changeset patch # User Stefan Monnier # Date 1055620610 0 # Node ID 65f7a99a6241c4ae7fda981f24fd1961abbe401a # Parent bed114065e35a6649fec123185abf88a6ea14437 (tex-compile-commands): Handle tex-start-commands like tex-start-tex does. diff -r bed114065e35 -r 65f7a99a6241 lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Sat Jun 14 19:04:20 2003 +0000 +++ b/lisp/textmodes/tex-mode.el Sat Jun 14 19:56:50 2003 +0000 @@ -1577,10 +1577,12 @@ (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")