diff lisp/textmodes/tex-mode.el @ 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 1d1d5d9bd884
children 335c3f4127c4
line wrap: on
line diff
--- 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)))