aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorStefan Monnier2008-12-24 22:24:24 +0000
committerStefan Monnier2008-12-24 22:24:24 +0000
commit78796feb48acdbe6b7e61818a2a0a80c779234a4 (patch)
tree9909251358ed99ad4ada1be1b16d227a0beda68c /lisp/textmodes
parente69790672013aebe2fefdf9f59411877728cd098 (diff)
downloademacs-78796feb48acdbe6b7e61818a2a0a80c779234a4.tar.gz
emacs-78796feb48acdbe6b7e61818a2a0a80c779234a4.zip
(tex-bibtex-file): Use tex-main-file.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/tex-mode.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 7515e864fa5..20f861f0a3d 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -2536,10 +2536,11 @@ Runs the shell command defined by `tex-show-queue-command'."
2536 (if (tex-shell-running) 2536 (if (tex-shell-running)
2537 (tex-kill-job) 2537 (tex-kill-job)
2538 (tex-start-shell)) 2538 (tex-start-shell))
2539 (let (shell-dirtrack-verbose 2539 (let* (shell-dirtrack-verbose
2540 (tex-out-file 2540 (source-file (tex-main-file))
2541 (tex-append (file-name-nondirectory (buffer-file-name)) "")) 2541 (tex-out-file
2542 (file-dir (file-name-directory (buffer-file-name)))) 2542 (tex-append (file-name-nondirectory source-file) ""))
2543 (file-dir (file-name-directory source-file)))
2543 (tex-send-command tex-shell-cd-command file-dir) 2544 (tex-send-command tex-shell-cd-command file-dir)
2544 (tex-send-command tex-bibtex-command tex-out-file)) 2545 (tex-send-command tex-bibtex-command tex-out-file))
2545 (tex-display-shell)) 2546 (tex-display-shell))