diff options
author | Sam Steingold <[email protected]> | 2000-10-31 21:31:55 +0000 |
---|---|---|
committer | Sam Steingold <[email protected]> | 2000-10-31 21:31:55 +0000 |
commit | a403261168fe5c6f27f8ca7fcfc65dafc9ca3991 (patch) | |
tree | 830bf03cff316b07c69bda06948c19c6d06c2f99 /lisp/textmodes | |
parent | 2f6707adaed54ba41c2491ca561f8f0a2859e9fd (diff) |
use default-directory when tex-main-file has no directory
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/tex-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index d39f40ad4b..1faa2a257f 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1528,7 +1528,8 @@ This function is more useful than \\[tex-buffer] when you need the `.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) |