GNU bug report logs - #5969
23.1; tex-bibtex-file incorrect dir issue

Previous Next

Package: emacs;

Reported by: barak <at> cs.nuim.ie

Date: Sun, 18 Apr 2010 14:21:02 UTC

Severity: normal

Merged with 5562

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 5969 in the body.
You can then email your comments to 5969 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5969; Package emacs. (Sun, 18 Apr 2010 14:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to barak <at> cs.nuim.ie:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 18 Apr 2010 14:21:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Barak A. Pearlmutter" <barak <at> cs.nuim.ie>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; tex-bibtex-file incorrect dir issue
Date: Sun, 18 Apr 2010 15:18:12 +0100
When visiting a LaTeX file foo.tex not in one's home directory,
tex-file (C-c C-f) works fine, but tex-bibtex-file (C-c TAB) switches
to the home directory before running bibtex, causing a fatal bibtex
error.

This is because the Emacs 21 line

	(file-dir (file-name-directory (buffer-file-name)))

was changed in Emacs 23 to

        (source-file (tex-main-file))
        (file-dir (file-name-directory source-file))

and (tex-main-file) is documented to: "return the relative name of the
main file."  So a simple fix would be

        (file-dir (file-name-directory (expand-file-name source-file)))

Cheers,
--
Barak A. Pearlmutter <barak <at> cs.nuim.ie>
 Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
 http://www.bcl.hamilton.ie/~barak/

----------------------------------------------------------------

In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12)
 of 2009-10-19 on debian-build.int-office-er.priv, modified by Debian
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=''





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5969; Package emacs. (Sun, 18 Apr 2010 18:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 5969 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: barak <at> cs.nuim.ie
Cc: 5969 <at> debbugs.gnu.org
Subject: Re: bug#5969: 23.1; tex-bibtex-file incorrect dir issue
Date: Sun, 18 Apr 2010 14:27:18 -0400
unarchive 5562
forcemerge 5562 5969
stop

Thanks; this is a duplicate of the fixed bug

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5562




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:03 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 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.