From unknown Sat Jun 21 10:25:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5969 <5969@debbugs.gnu.org> To: bug#5969 <5969@debbugs.gnu.org> Subject: Status: 23.1; tex-bibtex-file incorrect dir issue Reply-To: bug#5969 <5969@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:25:42 +0000 retitle 5969 23.1; tex-bibtex-file incorrect dir issue reassign 5969 emacs submitter 5969 barak@cs.nuim.ie severity 5969 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 18 10:20:20 2010 Received: (at submit) by debbugs.gnu.org; 18 Apr 2010 14:20:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3VMB-0004T1-42 for submit@debbugs.gnu.org; Sun, 18 Apr 2010 10:20:19 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3VM8-0004Sw-Qp for submit@debbugs.gnu.org; Sun, 18 Apr 2010 10:20:17 -0400 Received: from lists.gnu.org ([199.232.76.165]:38537) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O3VM3-0000ec-MN for submit@debbugs.gnu.org; Sun, 18 Apr 2010 10:20:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3VM3-0004zV-1L for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 10:20:11 -0400 Received: from [140.186.70.92] (port=59021 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3VM1-0004yn-4O for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 10:20:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3VLz-0000SD-Ce for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 10:20:08 -0400 Received: from mail.cs.may.ie ([149.157.246.225]:39010) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3VLz-0000Ri-5D for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 10:20:07 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.may.ie (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id o3IEK2KA007205; Sun, 18 Apr 2010 15:20:02 +0100 X-Virus-Scanned: Debian amavisd-new at cs.nuim.ie Received: from mail.cs.may.ie ([127.0.0.1]) by localhost (mail.cs.may.ie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id D428Y9xItoYi; Sun, 18 Apr 2010 15:20:02 +0100 (IST) Received: from golconda.cs.nuim.ie (golconda.cs.nuim.ie [149.157.245.66]) by mail.cs.may.ie (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id o3IEK1aP007182 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sun, 18 Apr 2010 15:20:02 +0100 Received: from barak by golconda.cs.nuim.ie with local (Exim 4.69) (envelope-from ) id 1O3VK8-0002Pp-6D; Sun, 18 Apr 2010 15:18:12 +0100 From: "Barak A. Pearlmutter" To: bug-gnu-emacs@gnu.org Subject: 23.1; tex-bibtex-file incorrect dir issue Message-Id: Date: Sun, 18 Apr 2010 15:18:12 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: barak@cs.nuim.ie List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) 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 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='' From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 18 14:27:29 2010 Received: (at 5969) by debbugs.gnu.org; 18 Apr 2010 18:27:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3ZDM-00063v-4n for submit@debbugs.gnu.org; Sun, 18 Apr 2010 14:27:28 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3ZDJ-00063n-3X; Sun, 18 Apr 2010 14:27:25 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O3ZDC-0005co-TW; Sun, 18 Apr 2010 14:27:18 -0400 To: barak@cs.nuim.ie Subject: Re: bug#5969: 23.1; tex-bibtex-file incorrect dir issue References: From: Glenn Morris X-Spook: ANZUS high security SAPO ANDVT morse investigation X-Ran: \uL>w0Pvm"^cWKP+C5.Gp.Nd.H{~g%_E/q.Bp@U\kO1=x2O[1zg>mxc'Z9%cvWK'az@$wR X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 18 Apr 2010 14:27:18 -0400 In-Reply-To: (Barak A. Pearlmutter's message of "Sun\, 18 Apr 2010 15\:18\:12 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 5969 Cc: 5969@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) unarchive 5562 forcemerge 5562 5969 stop Thanks; this is a duplicate of the fixed bug http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5562 From unknown Sat Jun 21 10:25:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 May 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator