all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* New tex-bibtex-file in tex-mode.el to take into account TeX-master
@ 2008-12-22  0:53 Francois Fleuret
  2008-12-22  9:01 ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Fleuret @ 2008-12-22  0:53 UTC (permalink / raw)
  To: emacs-devel

Dear Emacs developers,

I slightly modified tex-bibtex-file so that it takes into account the
variable TeX-master. I guess it was a bug not to do so.

Here it is:

---------------------------- snip snip -------------------------------
(defun tex-bibtex-file ()
  "Run BibTeX on the current buffer's file."
  (interactive)
  (if (tex-shell-running)
      (tex-kill-job)
    (tex-start-shell))
  (let (shell-dirtrack-verbose
	(tex-out-file
         (tex-append
          (or (and (boundp 'TeX-master)
                   (file-name-nondirectory TeX-master))
              (file-name-nondirectory (buffer-file-name))) ""))
	(file-dir (or (and (boundp 'TeX-master)
                           (file-name-directory TeX-master))
                      (file-name-directory (buffer-file-name)))))
    (tex-send-command tex-shell-cd-command file-dir)
    (tex-send-command tex-bibtex-command tex-out-file))
  (tex-display-shell))
---------------------------- snip snip -------------------------------

Best,

-- 
Francois Fleuret                            http://www.idiap.ch/~fleuret




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-22 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-22  0:53 New tex-bibtex-file in tex-mode.el to take into account TeX-master Francois Fleuret
2008-12-22  9:01 ` Reiner Steib
2008-12-22 12:16   ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.