Mercurial > emacs
changeset 107155:edb07dc0e175
Close bug#5562.
* textmodes/tex-mode.el (tex-bibtex-file): Expand the result of
tex-main-file before using it. (Bug#5562)
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Mon, 15 Feb 2010 18:42:03 -0800 |
parents | 19d6b3997e3f |
children | b57368a8e3fd |
files | lisp/ChangeLog lisp/textmodes/tex-mode.el |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Mon Feb 15 18:38:00 2010 -0800 +++ b/lisp/ChangeLog Mon Feb 15 18:42:03 2010 -0800 @@ -1,3 +1,8 @@ +2010-02-16 Glenn Morris <rgm@gnu.org> + + * textmodes/tex-mode.el (tex-bibtex-file): Expand the result of + tex-main-file before using it. (Bug#5562) + 2010-02-15 Stefan Monnier <monnier@iro.umontreal.ca> * emacs-lisp/advice.el (ad-compile-function): Suppress byte-compiler
--- a/lisp/textmodes/tex-mode.el Mon Feb 15 18:38:00 2010 -0800 +++ b/lisp/textmodes/tex-mode.el Mon Feb 15 18:42:03 2010 -0800 @@ -921,8 +921,8 @@ ;; remaining warning from byte-compiling all of Emacs... (eval-when-compile (setq byte-compile-function-environment - (delq (assq 'tex-mode byte-compile-function-environment) - byte-compile-function-environment))) + (delq (assq 'tex-mode byte-compile-function-environment) + byte-compile-function-environment))) ;;;###autoload (defun tex-mode () @@ -2643,7 +2643,7 @@ (tex-kill-job) (tex-start-shell)) (let* (shell-dirtrack-verbose - (source-file (tex-main-file)) + (source-file (expand-file-name (tex-main-file))) (tex-out-file (tex-append (file-name-nondirectory source-file) "")) (file-dir (file-name-directory source-file)))