Mercurial > emacs
changeset 33113:74323fb60963
use default-directory when tex-main-file has no directory
author | Sam Steingold <sds@gnu.org> |
---|---|
date | Tue, 31 Oct 2000 21:31:55 +0000 |
parents | 00c65b53cf3e |
children | 387b549687a3 |
files | lisp/ChangeLog lisp/textmodes/tex-mode.el |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Oct 31 21:24:31 2000 +0000 +++ b/lisp/ChangeLog Tue Oct 31 21:31:55 2000 +0000 @@ -1,3 +1,8 @@ +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.
--- a/lisp/textmodes/tex-mode.el Tue Oct 31 21:24:31 2000 +0000 +++ b/lisp/textmodes/tex-mode.el Tue Oct 31 21:31:55 2000 +0000 @@ -1528,7 +1528,8 @@ `.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)