all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <Roland.Winkler@physik.uni-erlangen.de>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: wodejianghu@gmail.com, 5562@debbugs.gnu.org
Subject: bug#5562: Emacs 23.1 problem with "tex-bibtex-file" command
Date: Sat, 13 Feb 2010 20:04:01 -0600	[thread overview]
Message-ID: <19319.23057.478129.38527@regnitz.physics.niu.edu> (raw)
In-Reply-To: <877hqh4m43.fsf@stupidchicken.com>

On Sat Feb 13 2010 Chong Yidong wrote:
> Hi Roland, could you take a look at this bug report?  I'm not sure there
> is enough info to reproduce, but I'm not familiar with bibtex-mode.
> Thanks.
> 
> > In Emacs LaTeX mode, whenever I tried to invoke bibtex command on the
> > current file by using C-c Tab (equivalent to issusing command
> > "tex-bibtex-file"), emacs changed the current directory to the home
> > directory and thus not being able to find the corresponding *.aux
> > file.
> >
> > Note that I was actually using Emacs LaTeX mode, not AucTeX mode.

I can reproduce the bug easily with "emacs -q" for all my LaTeX
files. (Usually I use auctex instead of tex-mode.) But it's not
clear to me, what the code is supposed to do. tex-bibtex-file calls
tex-main-file, which returns a relative filename. If there is just
one LaTeX file, it is this file's name (without any directory). But
then the working directory for the bibtex command is what
file-name-directory returns for the relative file name returned by
tex-main-file. This directory is usually nil. So the working
directory for the bibtex command becomes the $HOME directory and
bibtex fails.

I suggest, someone should look at this who is more familiar with
what tex-mode.el is supposed to do. This is a bug that should be
fixed before the next release.






  parent reply	other threads:[~2010-02-14  2:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 15:51 bug#5562: Emacs 23.1 problem with "tex-bibtex-file" command 人在江湖
2010-02-13  7:43 ` Chong Yidong
2010-02-13 18:46   ` Roland Winkler
2010-02-14  2:04   ` Roland Winkler [this message]
2010-02-16  2:44 ` Glenn Morris
     [not found] ` <mailman.1307.1266288770.14305.bug-gnu-emacs@gnu.org>
2010-03-17 14:22   ` stefan

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

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

  git send-email \
    --in-reply-to=19319.23057.478129.38527@regnitz.physics.niu.edu \
    --to=roland.winkler@physik.uni-erlangen.de \
    --cc=5562@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=wodejianghu@gmail.com \
    /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 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.