diff options
| author | Richard M. Stallman | 1996-09-27 20:42:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-27 20:42:12 +0000 |
| commit | ebe15e27eef7bf5617eef5e8d1cd8a113481622a (patch) | |
| tree | e7199ec312d6665b9ce3702c8613367232e7a952 | |
| parent | 61ede770df31cd298ba1453ab77364eab60aeeb1 (diff) | |
| download | emacs-ebe15e27eef7bf5617eef5e8d1cd8a113481622a.tar.gz emacs-ebe15e27eef7bf5617eef5e8d1cd8a113481622a.zip | |
(tex-main-file): Add missing initial value.
(tex-file): Set tex-print-file to source-file always.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 9b5065d0b1a..953073d2833 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -42,7 +42,7 @@ and you don't try to apply \\[tex-region] or \\[tex-buffer] when there are | |||
| 42 | `\\input' commands with relative directories.") | 42 | `\\input' commands with relative directories.") |
| 43 | 43 | ||
| 44 | ;;;###autoload | 44 | ;;;###autoload |
| 45 | (defvar tex-main-file | 45 | (defvar tex-main-file nil |
| 46 | "*The main TeX source file which includes this buffer's file. | 46 | "*The main TeX source file which includes this buffer's file. |
| 47 | The command `tex-buffer' runs TeX on `tex-main-file'if that is non-nil.") | 47 | The command `tex-buffer' runs TeX on `tex-main-file'if that is non-nil.") |
| 48 | 48 | ||
| @@ -1066,7 +1066,7 @@ This function is more useful than \\[tex-buffer] when you need the | |||
| 1066 | (tex-send-command tex-command source-file)) | 1066 | (tex-send-command tex-command source-file)) |
| 1067 | (tex-display-shell) | 1067 | (tex-display-shell) |
| 1068 | (setq tex-last-buffer-texed (current-buffer)) | 1068 | (setq tex-last-buffer-texed (current-buffer)) |
| 1069 | (setq tex-print-file (buffer-file-name))) | 1069 | (setq tex-print-file source-file)) |
| 1070 | 1070 | ||
| 1071 | (defun tex-generate-zap-file-name () | 1071 | (defun tex-generate-zap-file-name () |
| 1072 | "Generate a unique name suitable for use as a file name." | 1072 | "Generate a unique name suitable for use as a file name." |