unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5562: Emacs 23.1 problem with "tex-bibtex-file" command
@ 2010-02-11 15:51 人在江湖
  2010-02-13  7:43 ` Chong Yidong
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: 人在江湖 @ 2010-02-11 15:51 UTC (permalink / raw)
  To: 5562

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@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.







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

* bug#5562: Emacs 23.1 problem with "tex-bibtex-file" command
  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
  2010-02-16  2:44 ` Glenn Morris
       [not found] ` <mailman.1307.1266288770.14305.bug-gnu-emacs@gnu.org>
  2 siblings, 2 replies; 6+ messages in thread
From: Chong Yidong @ 2010-02-13  7:43 UTC (permalink / raw)
  To: Roland Winkler; +Cc: wodejianghu, 5562

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.






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

* 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
  1 sibling, 0 replies; 6+ messages in thread
From: Roland Winkler @ 2010-02-13 18:46 UTC (permalink / raw)
  To: Chong Yidong; +Cc: wodejianghu, 5562

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






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

* 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
  1 sibling, 0 replies; 6+ messages in thread
From: Roland Winkler @ 2010-02-14  2:04 UTC (permalink / raw)
  To: Chong Yidong; +Cc: wodejianghu, 5562

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.






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

* bug#5562: Emacs 23.1 problem with "tex-bibtex-file" command
  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-16  2:44 ` Glenn Morris
       [not found] ` <mailman.1307.1266288770.14305.bug-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2010-02-16  2:44 UTC (permalink / raw)
  To: 5562-done; +Cc: Roland Winkler

> 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.






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

* Re: bug#5562: Emacs 23.1 problem with "tex-bibtex-file" command
       [not found] ` <mailman.1307.1266288770.14305.bug-gnu-emacs@gnu.org>
@ 2010-03-17 14:22   ` stefan
  0 siblings, 0 replies; 6+ messages in thread
From: stefan @ 2010-03-17 14:22 UTC (permalink / raw)
  To: bug-gnu-emacs

On Feb 16, 3:44 am, Glenn Morris <r...@gnu.org> wrote:
> > 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.

A very stupid question: where do I find this fix?

Thanks,

Stefan


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

end of thread, other threads:[~2010-03-17 14:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2010-02-16  2:44 ` Glenn Morris
     [not found] ` <mailman.1307.1266288770.14305.bug-gnu-emacs@gnu.org>
2010-03-17 14:22   ` stefan

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).