(tex-file): Set tex-print-file to source-file always.
`\\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.")
(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."