aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2000-10-31 21:31:55 +0000
committerSam Steingold2000-10-31 21:31:55 +0000
commita403261168fe5c6f27f8ca7fcfc65dafc9ca3991 (patch)
tree830bf03cff316b07c69bda06948c19c6d06c2f99
parent2f6707adaed54ba41c2491ca561f8f0a2859e9fd (diff)
downloademacs-a403261168fe5c6f27f8ca7fcfc65dafc9ca3991.tar.gz
emacs-a403261168fe5c6f27f8ca7fcfc65dafc9ca3991.zip
use default-directory when tex-main-file has no directory
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/tex-mode.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e951b7ae8a0..29e40f668ee 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12000-10-31 Sam Steingold <sds@gnu.org>
2
3 * textmodes/tex-mode.el (tex-file): Use `default-directory' when
4 `tex-main-file' does not have directory in it.
5
12000-10-31 Stefan Monnier <monnier@cs.yale.edu> 62000-10-31 Stefan Monnier <monnier@cs.yale.edu>
2 7
3 * cus-edit.el (custom-mode-map): Switch back to a sparse keymap. 8 * cus-edit.el (custom-mode-map): Switch back to a sparse keymap.
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index d39f40ad4ba..1faa2a257f0 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
1528`.aux' file of LaTeX to have the correct name." 1528`.aux' file of LaTeX to have the correct name."
1529 (interactive) 1529 (interactive)
1530 (let* ((source-file (tex-main-file)) 1530 (let* ((source-file (tex-main-file))
1531 (file-dir (expand-file-name (file-name-directory source-file)))) 1531 (file-dir (expand-file-name (or (file-name-directory source-file)
1532 default-directory))))
1532 (if tex-offer-save 1533 (if tex-offer-save
1533 (save-some-buffers)) 1534 (save-some-buffers))
1534 (if (tex-shell-running) 1535 (if (tex-shell-running)