+2000-10-31 Sam Steingold <sds@gnu.org>
+
+ * textmodes/tex-mode.el (tex-file): Use `default-directory' when
+ `tex-main-file' does not have directory in it.
+
2000-10-31 Stefan Monnier <monnier@cs.yale.edu>
* cus-edit.el (custom-mode-map): Switch back to a sparse keymap.
`.aux' file of LaTeX to have the correct name."
(interactive)
(let* ((source-file (tex-main-file))
- (file-dir (expand-file-name (file-name-directory source-file))))
+ (file-dir (expand-file-name (or (file-name-directory source-file)
+ default-directory))))
(if tex-offer-save
(save-some-buffers))
(if (tex-shell-running)