From: Karl Heuer Date: Fri, 4 Sep 1998 20:39:26 +0000 (+0000) Subject: (tex-start-options-string): New option. X-Git-Tag: emacs-20.4~1763 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f882e21d600690d5eb2fa6f5793adc9de107f13;p=emacs.git (tex-start-options-string): New option. (tex-start-tex): Use that variable. --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 8cb217e0efd..b80287e50de 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -95,6 +95,13 @@ otherwise, the file name, preceded by blank, is added at the end." :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 @@ If NOT-ALL is non-nil, save the `.dvi' file." (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)