# HG changeset patch # User Karl Heuer # Date 904941566 0 # Node ID a49b7294e019974f24b441679c55436e631c5c01 # Parent 945fed18ddb83993b77b7491ffb6de56b5961549 (tex-start-options-string): New option. (tex-start-tex): Use that variable. diff -r 945fed18ddb8 -r a49b7294e019 lisp/textmodes/tex-mode.el --- a/lisp/textmodes/tex-mode.el Fri Sep 04 20:38:16 1998 +0000 +++ b/lisp/textmodes/tex-mode.el Fri Sep 04 20:39:26 1998 +0000 @@ -95,6 +95,13 @@ :type 'string :group 'tex-run) +(defcustom tex-start-options-string " \\\\nonstopmode\\\\input" + "*TeX options to use when running TeX. +These precede the input file name." + :type 'string + :group 'tex-run + :version "20.4") + ;;;###autoload (defcustom latex-run-command "latex" "*Command used to run LaTeX subjob. @@ -1065,7 +1072,7 @@ (defun tex-start-tex (command file) "Start a TeX run, using COMMAND on FILE." - (let* ((cmd (concat command " \\\\nonstopmode\\\\input")) + (let* ((cmd (concat command tex-start-options-string)) (star (string-match "\\*" cmd)) (compile-command (if star (concat (substring cmd 0 star)