changeset 44884:6c699f1e076c

(tex-start-options): New variable. (tex-start-commands): New variable. (tex-start-options-string): Variable deleted. (tex-start-tex): Use tex-start-options and tex-start-commands, not tex-start-options-string. (tex-command): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Fri, 26 Apr 2002 21:19:14 +0000
parents 7d867b33aa2d
children 467b1524d1cb
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 23 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Fri Apr 26 18:59:08 2002 +0000
+++ b/lisp/textmodes/tex-mode.el	Fri Apr 26 21:19:14 2002 +0000
@@ -120,16 +120,29 @@
   :group 'tex-run)
 
 ;;;###autoload
-(defcustom tex-start-options-string "\\nonstopmode\\input"
-  "*TeX options to use when running TeX.
-These precede the input file name. If nil, TeX runs without option.
+(defcustom tex-start-options nil
+  "*TeX options to use when starting TeX.
+These precede the commands in `tex-start-options'
+and the input file name.  If nil, TeX runs with no options.
 See the documentation of `tex-command'."
   :type '(radio (const :tag "Interactive \(nil\)" nil)
 		(const :tag "Nonstop \(\"\\nonstopmode\\input\"\)"
 		       "\\nonstopmode\\input")
 		(string :tag "String at your choice"))
   :group 'tex-run
-  :version "20.4")
+  :version "21.4")
+
+;;;###autoload
+(defcustom tex-start-commands "\\nonstopmode\\input"
+  "*TeX commands to use when starting TeX.
+These precede the input file name.  If nil, no commands are used.
+See the documentation of `tex-command'."
+  :type '(radio (const :tag "Interactive \(nil\)" nil)
+		(const :tag "Nonstop \(\"\\nonstopmode\\input\"\)"
+		       "\\nonstopmode\\input")
+		(string :tag "String at your choice"))
+  :group 'tex-run
+  :version "21.4")
 
 (defvar standard-latex-block-names
   '("abstract"		"array"		"center"	"description"
@@ -238,8 +251,9 @@
 (defvar tex-command nil
   "*Command to run TeX.
 If this string contains an asterisk \(`*'\), that is replaced by the file name\;
-otherwise the \(shell-quoted\) value of `tex-start-options-string' and
-the file name are added at the end, with blanks as separators.
+otherwise the value of `tex-start-options', the \(shell-quoted\)
+value of `tex-start-commands', and the file name are added at the end
+with blanks as separators.
 
 In TeX, LaTeX, and SliTeX Mode this variable becomes buffer local.
 In these modes, use \\[set-variable] if you want to change it for the
@@ -1447,9 +1461,10 @@
 		      (comint-quote-filename file)
 		      (substring command (1+ star)))
             (concat command " "
-		    (if (< 0 (length tex-start-options-string))
+		    (if (< 0 (length tex-start-commands))
 			(concat
-			 (shell-quote-argument tex-start-options-string) " "))
+			 (shell-quote-argument tex-start-commands) " "))
+		    tex-start-options
 		    (comint-quote-filename file)))))
     (tex-send-tex-command compile-command dir)))