* bug#5969: 23.1; tex-bibtex-file incorrect dir issue
@ 2010-04-18 14:18 Barak A. Pearlmutter
2010-04-18 18:27 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Barak A. Pearlmutter @ 2010-04-18 14:18 UTC (permalink / raw)
To: 5969
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@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=''
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#5969: 23.1; tex-bibtex-file incorrect dir issue
2010-04-18 14:18 bug#5969: 23.1; tex-bibtex-file incorrect dir issue Barak A. Pearlmutter
@ 2010-04-18 18:27 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2010-04-18 18:27 UTC (permalink / raw)
To: barak; +Cc: 5969
unarchive 5562
forcemerge 5562 5969
stop
Thanks; this is a duplicate of the fixed bug
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5562
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-18 18:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 14:18 bug#5969: 23.1; tex-bibtex-file incorrect dir issue Barak A. Pearlmutter
2010-04-18 18:27 ` Glenn Morris
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.