]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-compile-commands): Handle tex-start-commands like tex-start-tex does.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 14 Jun 2003 19:56:50 +0000 (19:56 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 14 Jun 2003 19:56:50 +0000 (19:56 +0000)
lisp/textmodes/tex-mode.el

index 583c106c173da844941f7ba58324ea100c159179..a7b2d8e8f810950024393216dbf0d17740262340 100644 (file)
@@ -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")