diff options
| -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." |