From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Carsten Dominik Newsgroups: gmane.emacs.bugs Subject: Re: reftex-locate-bibliography-files fails Date: 21 May 2002 08:45:54 +0200 Organization: Faculty of Science, University of Amsterdam Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <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 X-Trace: main.gmane.org 1021963678 12251 127.0.0.1 (21 May 2002 06:47:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 21 May 2002 06:47:58 +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 17A3R8-0003BU-00 for ; Tue, 21 May 2002 08:47:58 +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 17A3Rb-0002Be-00; Tue, 21 May 2002 02:48:27 -0400 Original-Received: from ashd1-2.relay.mail.uu.net ([199.171.54.246]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17A3Q5-00029h-00 for ; Tue, 21 May 2002 02:46:54 -0400 Original-Received: from mail.science.uva.nl by mr1.ash.ops.us.uu.net with ESMTP (peer crosschecked as: mail.science.uva.nl [146.50.4.51]) id QQmptr22031 for ; Tue, 21 May 2002 06:46:50 GMT Original-Received: from info.science.uva.nl [146.50.3.20] by mail.science.uva.nl with ESMTP (sendmail 8.11.6/config 11.25). id g4L6jtR12672; Tue, 21 May 2002 08:45:55 +0200 (MEST) Original-Received: from localhost by info.science.uva.nl (sendmail 8.11.6/config 11.25). id g4L6jrB18163; Tue, 21 May 2002 08:45:53 +0200 (MEST) X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 27 Original-Distribution: world Original-NNTP-Posting-Host: sand.science.uva.nl Original-X-Trace: info.science.uva.nl 1021963553 18107 146.50.10.74 (21 May 2002 06:45:53 GMT) Original-X-Complaints-To: usenet@science.uva.nl Original-NNTP-Posting-Date: Tue, 21 May 2002 06:45:53 +0000 (UTC) User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley) 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:1490 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1490 >>>>> "RW" == Roland Winkler writes: RW> The regexp in reftex-locate-bibliography-files for matching RW> `\bibliography{x}' in a LaTeX file fails when `\bibliography{x}' is RW> surrounded by extra braces like '{\bibliography{x}}'. However, in RW> certain cases these extra braces are required to make chapterbib.sty RW> work, see the documentation of chapterbib.sty. As the documentation RW> of reftex.el says that reftex.el works with chapterbib.sty, I RW> suggest that the regexp matching in reftex-locate-bibliography-files RW> should support '{\bibliography{x}}'. I'll look into it. RW> Remark: I really do not understand the purpose of the first RW> parenthesized part in RW> "\\(\\`\\|[\n\r]\\)[ \t]*\\\\\\(no\\)?bibliography{[ \t]*\\([^}]+\\)" RW> Maybe there are situations when something like this is necessary. RW> But isn't this regexp much too restrictive? For efficiency reasons, RefTeX requires the bibliography statement first on a line. Normally this is no problem, and it ensures that the statement has not been commented out. - Carsten