unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Francois Fleuret <francois.fleuret@idiap.ch>
To: emacs-devel@gnu.org
Subject: New tex-bibtex-file in tex-mode.el to take into account TeX-master
Date: Mon, 22 Dec 2008 01:53:33 +0100	[thread overview]
Message-ID: <18766.58637.52194.417250@moose.fleuret.org> (raw)

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




             reply	other threads:[~2008-12-22  0:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-22  0:53 Francois Fleuret [this message]
2008-12-22  9:01 ` New tex-bibtex-file in tex-mode.el to take into account TeX-master Reiner Steib
2008-12-22 12:16   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18766.58637.52194.417250@moose.fleuret.org \
    --to=francois.fleuret@idiap.ch \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).