mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-20 18:17:20 +00:00
(tex-main-file): Add missing initial value.
(tex-file): Set tex-print-file to source-file always.
This commit is contained in:
parent
61ede770df
commit
ebe15e27ee
@ -42,7 +42,7 @@ and you don't try to apply \\[tex-region] or \\[tex-buffer] when there are
|
||||
`\\input' commands with relative directories.")
|
||||
|
||||
;;;###autoload
|
||||
(defvar tex-main-file
|
||||
(defvar tex-main-file nil
|
||||
"*The main TeX source file which includes this buffer's file.
|
||||
The command `tex-buffer' runs TeX on `tex-main-file'if that is non-nil.")
|
||||
|
||||
@ -1066,7 +1066,7 @@ This function is more useful than \\[tex-buffer] when you need the
|
||||
(tex-send-command tex-command source-file))
|
||||
(tex-display-shell)
|
||||
(setq tex-last-buffer-texed (current-buffer))
|
||||
(setq tex-print-file (buffer-file-name)))
|
||||
(setq tex-print-file source-file))
|
||||
|
||||
(defun tex-generate-zap-file-name ()
|
||||
"Generate a unique name suitable for use as a file name."
|
||||
|
Loading…
Reference in New Issue
Block a user