Emacs23 bibtex-ing a file changes directory and fails

Bug #558691 reported by Calcipher
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GNU Emacs
emacs23 (Ubuntu)

Bug Description

Binary package hint: emacs23

I have two machines running Emacs23 (one Ubuntu 9.10x64, the other Windows XP), both with the same stuff installed and the same .emacs file; however, I am having a problem with the Ubuntu machine and bibtex. When I bibtex a LaTeX file, emacs first inserts a CD to the emulated command line and then tries to do the bibtex. Obviously, because I am no longer in the same directory as the aux file, the bibtex fails.
To test and ensure it wasn't just my setup, I loaded VirtualBox with a fresh copy of Ubuntu 10.04. I installed emacs23 (sudo apt-get install emacs23) and left it without any configuration (.emacs file or any of the extras files) and attempted to bibtex a file. Unfortunately, I got the same results. Emacs23 on Ubuntu inserts a CD (just 'cd' no path so it goes to your home directory) to the emulated command line and then attempts to execute the bibtex command (e.g. "bibtex Example", notice there is no path here to indicate where the aux file is and, unlike in Windows, the name of the aux is not quoted out).

Tags: bibtex emacs23
Calcipher (calcipher)
Changed in emacs23 (Ubuntu):
status: New → Confirmed
Revision history for this message
Ralf Doering (rdoering) wrote :

This is fixed with upstream commit 99502, see http://bazaar.launchpad.net/~vcs-imports/emacs/trunk/revision/99502

Revision history for this message
Ian Hutchinson (hutch) wrote :

Yes I can see that change. But it does not actually fix the bug.
Replacing in tex-mode.el
2646 (source-file (tex-main-file))
2646 (source-file (expand-file-name (tex-main-file)))
the bug still exists.
For now, I've hacked in a fix by commenting out the offending command:
;;;; (tex-send-command tex-shell-cd-command file-dir)
    (tex-send-command tex-bibtex-command tex-out-file))

If you want to do it yourself go to
gunzip tex-mode.el.gz
emacs it and hack it. Then byte compile it. (All as root of course). Good luck.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.