GNU bug report logs -
#5562
Emacs 23.1 problem with "tex-bibtex-file" command
Previous Next
Reported by: 人在江湖 <wodejianghu <at> gmail.com>
Date: Thu, 11 Feb 2010 15:55:02 UTC
Severity: normal
Merged with 5969
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5562 in the body.
You can then email your comments to 5562 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5562
; Package
emacs
.
(Thu, 11 Feb 2010 15:55:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
人在江湖 <wodejianghu <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 11 Feb 2010 15:55:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Below is the bug report created by using "M-x report-emacs-bug", just
that I could not send it successfully.
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; problem with "tex-bibtex-file" command
--text follows this line--
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.
In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
of 2009-11-10 on vernadsky, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10604000
configured using `configure '--build=i486-linux-gnu'
'--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var/lib'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
'--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> M-x
<help-echo> r <help-echo> e <help-echo> p <help-echo>
o <help-echo> r <help-echo> t <help-echo> - <help-echo>
e <help-echo> m <help-echo> a <help-echo> c <help-echo>
s <help-echo> <tab> <help-echo> <return>
Recent messages:
No /etc/mailname. Reverting to default...
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
/usr/bin/mail is not an executable. Setting mail-interactive to t.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5562
; Package
emacs
.
(Sat, 13 Feb 2010 07:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5562 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5562
; Package
emacs
.
(Sat, 13 Feb 2010 18:47:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 5562 <at> debbugs.gnu.org (full text, mbox):
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 try to take a look. But it appears to me that this is not
related with bibtex-mode but latex-mode. bibtex-mode is for managing
a BibTeX database. latex-mode, on the other hand, calls the external
bibtex command (much the same way it also calls the (la)tex command.
I am not familiar with latex-mode.
Roland
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5562
; Package
emacs
.
(Sun, 14 Feb 2010 02:05:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 5562 <at> debbugs.gnu.org (full text, mbox):
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.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Tue, 16 Feb 2010 02:45:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
人在江湖 <wodejianghu <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 16 Feb 2010 02:45:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 5562-done <at> debbugs.gnu.org (full text, mbox):
> 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.
Thanks; fixed.
bug archived.
Request was from
Debbugs Internal Request <bug-gnu-emacs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 16 Mar 2010 11:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Apr 2010 18:28:02 GMT)
Full text and
rfc822 format available.
Forcibly Merged 5562 5969.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Apr 2010 18:28:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 17 May 2010 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 94 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.