From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel,gmane.emacs.auctex.devel Subject: [PATCH 1/3] RefTeX: Basic Biblatex support. Date: Wed, 15 May 2013 20:10:06 +0200 Message-ID: <1614996.YrF0ft91WL@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1368641448 13102 80.91.229.3 (15 May 2013 18:10:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 May 2013 18:10:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: auctex-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 15 20:10:48 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcgA2-0006eu-Vn for ged-emacs-devel@m.gmane.org; Wed, 15 May 2013 20:10:47 +0200 Original-Received: from localhost ([::1]:40964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcgA2-000734-4t for ged-emacs-devel@m.gmane.org; Wed, 15 May 2013 14:10:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucg9r-0006nY-N8 for emacs-devel@gnu.org; Wed, 15 May 2013 14:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucg9k-0005vN-JH for emacs-devel@gnu.org; Wed, 15 May 2013 14:10:35 -0400 Original-Received: from ptmx.org ([178.63.28.110]:35548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucg9Z-0005pV-MN; Wed, 15 May 2013 14:10:17 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 18BE62A242; Wed, 15 May 2013 20:10:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0wQxN6TpkFlj; Wed, 15 May 2013 20:10:12 +0200 (CEST) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id AB4DF273FB; Wed, 15 May 2013 20:10:12 +0200 (CEST) User-Agent: KMail/4.10.2 (Linux/3.8.0-19-generic; KDE/4.10.2; x86_64; ; ) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159596 gmane.emacs.auctex.devel:3095 Archived-At: Add support for Biblatex' \addbibresource[]{}. There is probably more to do for full Biblatex support, such as addglobalbib/addsectionbib support. http://www.ctan.org/pkg/biblatex * lisp/textmodes/reftex-parse.el (reftex-locate-bibliography-files): Accept options for bibliography commands. * lisp/textmodes/reftex-vars.el (reftex-bibliography-commands): Add addbibresource. Basic Biblatex support. Signed-off-by: R=C3=BCdiger Sonderfeld --- lisp/textmodes/reftex-parse.el | 4 ++-- lisp/textmodes/reftex-vars.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-par= se.el index 6bfc70c..8d1b3f7 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el @@ -359,9 +359,9 @@ of master file." ; "\\(\\`\\|[\n\r]\\)[^%]*\\\\\\(" "\\(^\\)[^%\n\r]*\\\\\\(" (mapconcat 'identity reftex-bibliography-commands "\\|") - "\\){[ \t]*\\([^}]+\\)") nil t) + "\\)\\(\\[.+?\\]\\)?{[ \t]*\\([^}]+\\)") nil t) (setq files - (split-string (reftex-match-string 3) + (split-string (reftex-match-string 4) "[ \t\n\r]*,[ \t\n\r]*"))))) (when files (setq files diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars= .el index 47bec5e..3792ab4 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -1112,7 +1112,7 @@ buffer." :group 'reftex) =20 (defcustom reftex-bibliography-commands - '("bibliography" "nobibliography" "setupbibtex\\[.*?database=3D") + '("bibliography" "nobibliography" "setupbibtex\\[.*?database=3D" "ad= dbibresource") "LaTeX commands which specify the BibTeX databases to use with the d= ocument." :group 'reftex-citation-support :type '(repeat string)) --=20 1.8.2.3