# HG changeset patch # User Glenn Morris # Date 1266288123 28800 # Node ID edb07dc0e1752615fdff2d50a8c3ca01ba085689 # Parent 19d6b3997e3ff69c9f2c9ff3253dce720145c182 Close bug#5562. * textmodes/tex-mode.el (tex-bibtex-file): Expand the result of tex-main-file before using it. (Bug#5562) diff -r 19d6b3997e3f -r edb07dc0e175 lisp/ChangeLog --- 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 + + * textmodes/tex-mode.el (tex-bibtex-file): Expand the result of + tex-main-file before using it. (Bug#5562) + 2010-02-15 Stefan Monnier * emacs-lisp/advice.el (ad-compile-function): Suppress byte-compiler diff -r 19d6b3997e3f -r edb07dc0e175 lisp/textmodes/tex-mode.el --- 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)))