From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: reftex-locate-bibliography-files fails Date: Mon, 20 May 2002 13:33:32 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <15592.57100.255741.676752@tfkp00.physik.uni-erlangen.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1021894565 25526 127.0.0.1 (20 May 2002 11:36:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 May 2002 11:36:05 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 179lSP-0006db-00 for ; Mon, 20 May 2002 13:36:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179lSq-00086V-00; Mon, 20 May 2002 07:36:32 -0400 Original-Received: from max5.rrze.uni-erlangen.de ([131.188.3.50]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179lQ4-0007q7-00 for ; Mon, 20 May 2002 07:33:40 -0400 Original-Received: from tfkp00.physik.uni-erlangen.de by max5.rrze.uni-erlangen.de with ESMTP for bug-gnu-emacs@gnu.org; Mon, 20 May 2002 13:33:38 +0200 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1469 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1469 In GNU Emacs 21.2.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-04-09 on tfkp12 configured using `configure --prefix=/nfs/common --libexecdir=/nfs/common/lib --bindir=/nfs/common/lib/emacs/21.2/bin/i686-Linux --mandir=/nfs/common/share/man --infodir=/nfs/common/share/info --with-gcc --with-pop --with-x --with-x-toolkit=athena i386-pc-linux' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX 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 locale-coding-system: iso-latin-1 default-enable-multibyte-characters: nil The regexp in reftex-locate-bibliography-files for matching `\bibliography{x}' in a LaTeX file fails when `\bibliography{x}' is surrounded by extra braces like '{\bibliography{x}}'. However, in certain cases these extra braces are required to make chapterbib.sty work, see the documentation of chapterbib.sty. As the documentation of reftex.el says that reftex.el works with chapterbib.sty, I suggest that the regexp matching in reftex-locate-bibliography-files should support '{\bibliography{x}}'. Remark: I really do not understand the purpose of the first parenthesized part in "\\(\\`\\|[\n\r]\\)[ \t]*\\\\\\(no\\)?bibliography{[ \t]*\\([^}]+\\)" Maybe there are situations when something like this is necessary. But isn't this regexp much too restrictive? Roland