aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-01-18 01:18:19 +0000
committerRichard M. Stallman1999-01-18 01:18:19 +0000
commit5616ee4617092578abb2bd1fe98d4f1b03ce7d57 (patch)
treed215e4dd2aec639a924354bc44212dc5c7d997b1
parentd28701c72f24aca5d3be77418a6bf9a7ce37b65b (diff)
downloademacs-5616ee4617092578abb2bd1fe98d4f1b03ce7d57.tar.gz
emacs-5616ee4617092578abb2bd1fe98d4f1b03ce7d57.zip
(latex-run-command): Doc fix.
(tex-command): Doc fix. (tex-compilation-parse-errors): Doc fix. (tex-generate-zap-file-name): Don't start the name with -. (tex-expand-files): Works now also with strings ending with ":".
-rw-r--r--lisp/textmodes/tex-mode.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index e4ee3049d83..bee639bd48f 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1,6 +1,6 @@
1;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands. 1;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands.
2 2
3;; Copyright (C) 1985, 86, 89, 92, 94, 95, 96, 1997 3;; Copyright (C) 1985, 86, 89, 92, 94, 95, 96, 97, 1998
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -107,7 +107,8 @@ These precede the input file name."
107(defcustom latex-run-command "latex" 107(defcustom latex-run-command "latex"
108 "*Command used to run LaTeX subjob. 108 "*Command used to run LaTeX subjob.
109If this string contains an asterisk (`*'), that is replaced by the file name; 109If this string contains an asterisk (`*'), that is replaced by the file name;
110otherwise, the file name, preceded by blank, is added at the end." 110otherwise the value of `tex-start-options-string' and the file name are added
111at the end, with blanks as separators."
111 :type 'string 112 :type 'string
112 :group 'tex-run) 113 :group 'tex-run)
113 114
@@ -225,7 +226,8 @@ tex shell terminates.")
225 226
226(defvar tex-command nil 227(defvar tex-command nil
227 "Command to run TeX. 228 "Command to run TeX.
228The name of the file, preceded by a blank, will be added to this string.") 229The usual values are `tex-run-command' and `latex-run-command'.
230See the documentations of these variables.")
229 231
230(defvar tex-trailer nil 232(defvar tex-trailer nil
231 "String appended after the end of a region sent to TeX by \\[tex-region].") 233 "String appended after the end of a region sent to TeX by \\[tex-region].")
@@ -1110,6 +1112,7 @@ the source file is read in, and the text location is saved in
1110 1112
1111If LIMIT-SEARCH is non-nil, don't bother parsing past that location. 1113If LIMIT-SEARCH is non-nil, don't bother parsing past that location.
1112If FIND-AT-LEAST is non-nil, don't bother parsing after finding that 1114If FIND-AT-LEAST is non-nil, don't bother parsing after finding that
1115many new errors.
1113 1116
1114This function works on TeX compilations only. It is necessary for 1117This function works on TeX compilations only. It is necessary for
1115that purpose, since TeX does not put file names on the same line as 1118that purpose, since TeX does not put file names on the same line as
@@ -1320,7 +1323,7 @@ This function is more useful than \\[tex-buffer] when you need the
1320 ;; in case there are multiple shells (for same or different user). 1323 ;; in case there are multiple shells (for same or different user).
1321 ;; Dec 1998: There is a report that some versions of xdvi 1324 ;; Dec 1998: There is a report that some versions of xdvi
1322 ;; don't work with file names that start with #. 1325 ;; don't work with file names that start with #.
1323 (format "-tz#%d%s" 1326 (format "_TZ_%d-%s"
1324 (process-id (get-buffer-process "*tex-shell*")) 1327 (process-id (get-buffer-process "*tex-shell*"))
1325 (tex-strip-dots (system-name)))) 1328 (tex-strip-dots (system-name))))
1326 1329
@@ -1339,7 +1342,9 @@ This function is more useful than \\[tex-buffer] when you need the
1339 (setq start (match-end 0))) 1342 (setq start (match-end 0)))
1340 (or (= start 0) 1343 (or (= start 0)
1341 (setq elts (cons (substring s start) elts))) 1344 (setq elts (cons (substring s start) elts)))
1342 (mapconcat 'expand-file-name (nreverse elts) ":"))) 1345 (mapconcat '(lambda (elt)
1346 (if (= (length elt) 0) elt (expand-file-name elt)))
1347 (nreverse elts) ":")))
1343 1348
1344(defun tex-shell-running () 1349(defun tex-shell-running ()
1345 (and (get-process "tex-shell") 1350 (and (get-process "tex-shell")