From unknown Sat Aug 16 20:58:16 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#5562 <5562@debbugs.gnu.org> To: bug#5562 <5562@debbugs.gnu.org> Subject: Status: Emacs 23.1 problem with "tex-bibtex-file" command Reply-To: bug#5562 <5562@debbugs.gnu.org> Date: Sun, 17 Aug 2025 03:58:16 +0000 retitle 5562 Emacs 23.1 problem with "tex-bibtex-file" command reassign 5562 emacs submitter 5562 =E4=BA=BA=E5=9C=A8=E6=B1=9F=E6=B9=96 severity 5562 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 11 10:54:42 2010 Received: (at submit) by debbugs.gnu.org; 11 Feb 2010 15:54:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfbNJ-0007xt-SZ for submit@debbugs.gnu.org; Thu, 11 Feb 2010 10:54:42 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfbK9-0007vg-Cu for submit@debbugs.gnu.org; Thu, 11 Feb 2010 10:51:25 -0500 Received: from mail.gnu.org ([199.232.76.166]:46012 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfbK4-0000CX-LL for submit@debbugs.gnu.org; Thu, 11 Feb 2010 10:51:20 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfbK3-0005Vd-OC for submit@debbugs.gnu.org; Thu, 11 Feb 2010 10:51:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00, DNS_FROM_RFC_POST,UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:34647) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfbK3-0005VZ-Hi for submit@debbugs.gnu.org; Thu, 11 Feb 2010 10:51:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfbK3-0004TI-6E for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2010 10:51:19 -0500 Received: from [199.232.76.173] (port=34262 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfbK2-0004T3-Rt for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2010 10:51:18 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfbK1-0005VR-Pd for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2010 10:51:18 -0500 Received: from mail-fx0-f215.google.com ([209.85.220.215]:43459) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfbK1-0005VH-Fe for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2010 10:51:17 -0500 Received: by fxm7 with SMTP id 7so1495696fxm.8 for ; Thu, 11 Feb 2010 07:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Ow1SPk4HESf2YNKpWCiOR+AXPW13wB7KlM4TDG2g8Xw=; b=flYK0RjaIzlE+jJIMfrXq5fhIuQmSK01+cttUKfi3Kq+2A2g4HEwUrvTZE1PIsYmAp 5dMtxbSOLlZnaNZo2TkLO3/eXfJDekq/7nyzGBHgFd4lWY37ceVnKR7Rx39vz8zBR4eR lThnZI+xvOm4TBiVk9yxSbQd/c+LkL1kudr/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=REsj4xbuzyGnpj4Tx5PcZtPwg162ZQbqy3UJ95TfWPNIGCakn7oVo8ihhrYCPRoPkS NQaPUKf5QqNKON/A+4u07JsoV3KIW698SKbcxmWJPdd7geEUBI7aeqoE9K/NXhuwsyh5 5KdF71U6q1yXxwe9l16d/0dNPXISAhmssgcxM= MIME-Version: 1.0 Received: by 10.223.97.220 with SMTP id m28mr32915fan.36.1265903473479; Thu, 11 Feb 2010 07:51:13 -0800 (PST) Date: Thu, 11 Feb 2010 07:51:13 -0800 Message-ID: Subject: Emacs 23.1 problem with "tex-bibtex-file" command From: =?UTF-8?B?5Lq65Zyo5rGf5rmW?= To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 11 Feb 2010 10:54:41 -0500 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: -5.9 (-----) 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: M-x r e p o r t - e m a c s 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 02:43:13 2010 Received: (at 5562) by debbugs.gnu.org; 13 Feb 2010 07:43:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgCen-0003jG-L5 for submit@debbugs.gnu.org; Sat, 13 Feb 2010 02:43:13 -0500 Received: from pantheon-po33.its.yale.edu ([130.132.50.94]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgCem-0003j7-2w for 5562@debbugs.gnu.org; Sat, 13 Feb 2010 02:43:12 -0500 Received: from furry (bb121-6-236-4.singnet.com.sg [121.6.236.4]) (authenticated bits=0) by pantheon-po33.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o1D7h8px012321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 13 Feb 2010 02:43:11 -0500 Received: by furry (Postfix, from userid 1000) id 15E55C05D; Sat, 13 Feb 2010 02:43:08 -0500 (EST) From: Chong Yidong To: Roland Winkler Subject: Re: Emacs 23.1 problem with "tex-bibtex-file" command Date: Sat, 13 Feb 2010 02:43:08 -0500 Message-ID: <877hqh4m43.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5562 Cc: wodejianghu@gmail.com, 5562@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: -2.6 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 13:46:58 2010 Received: (at 5562) by debbugs.gnu.org; 13 Feb 2010 18:46:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgN17-0003nQ-RB for submit@debbugs.gnu.org; Sat, 13 Feb 2010 13:46:58 -0500 Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgN14-0003nJ-U9 for 5562@debbugs.gnu.org; Sat, 13 Feb 2010 13:46:55 -0500 Received: from regnitz.physics.niu.edu (adsl-68-77-0-1.dsl.emhril.ameritech.net [68.77.0.1]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 5C938215D2; Sat, 13 Feb 2010 19:46:46 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19318.62348.421865.359283@regnitz.physics.niu.edu> Date: Sat, 13 Feb 2010 12:46:36 -0600 From: "Roland Winkler" To: Chong Yidong Subject: Re: Emacs 23.1 problem with "tex-bibtex-file" command In-Reply-To: <877hqh4m43.fsf@stupidchicken.com> References: <877hqh4m43.fsf@stupidchicken.com> X-Mailer: VM 8.2 trial under 23.1.90.1 (i686-pc-linux-gnu) X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5562 Cc: wodejianghu@gmail.com, 5562@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: -1.9 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 21:04:27 2010 Received: (at 5562) by debbugs.gnu.org; 14 Feb 2010 02:04:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgTqU-00010C-SI for submit@debbugs.gnu.org; Sat, 13 Feb 2010 21:04:27 -0500 Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgTqT-000101-1n for 5562@debbugs.gnu.org; Sat, 13 Feb 2010 21:04:25 -0500 Received: from regnitz.physics.niu.edu (adsl-68-77-0-1.dsl.emhril.ameritech.net [68.77.0.1]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 49920215D2; Sun, 14 Feb 2010 03:04:17 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19319.23057.478129.38527@regnitz.physics.niu.edu> Date: Sat, 13 Feb 2010 20:04:01 -0600 From: "Roland Winkler" To: Chong Yidong Subject: Re: Emacs 23.1 problem with "tex-bibtex-file" command In-Reply-To: <877hqh4m43.fsf@stupidchicken.com> References: <877hqh4m43.fsf@stupidchicken.com> X-Mailer: VM 8.2 trial under 23.1.90.1 (i686-pc-linux-gnu) X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5562 Cc: wodejianghu@gmail.com, 5562@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: -1.9 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 15 21:44:39 2010 Received: (at 5562-done) by debbugs.gnu.org; 16 Feb 2010 02:44:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhDQV-0003s4-Ev for submit@debbugs.gnu.org; Mon, 15 Feb 2010 21:44:39 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhDQT-0003rz-N4 for 5562-done@debbugs.gnu.org; Mon, 15 Feb 2010 21:44:38 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NhDQO-0004Xh-Pf; Mon, 15 Feb 2010 21:44:32 -0500 To: 5562-done@debbugs.gnu.org Subject: Re: bug#5562: Emacs 23.1 problem with "tex-bibtex-file" command References: From: Glenn Morris X-Spook: Qaddafi BROMURE satellite imagery Mossad Centro Mafia X-Ran: i2Di>0k5uUC:TSGu:he|4VvMiBf%~nGXm@tWJ+w0[n.\KT1SOR1O8{2r]/Ux7s\G 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.0 (------) X-Debbugs-Envelope-To: 5562-done Cc: Roland Winkler 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.0 (------) > 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. From unknown Sat Aug 16 20:58:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Mar 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 18 14:27:28 2010 Received: (at control) 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-00063y-BH 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: control 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 Aug 16 20:58:16 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