* lisp/textmodes/reftex-parse.el (reftex-locate-bibliography-files):
authorTassilo Horn <tsdh@gnu.org>
Thu, 23 May 2013 15:21:54 +0000 (17:21 +0200)
committerTassilo Horn <tsdh@gnu.org>
Thu, 23 May 2013 15:21:54 +0000 (17:21 +0200)
  Accept options for bibliography commands.
* lisp/textmodes/reftex-vars.el (reftex-bibliography-commands): Add
  addbibresource.  Basic Biblatex support.

lisp/ChangeLog
lisp/textmodes/reftex-parse.el
lisp/textmodes/reftex-vars.el

index a5a3bac..25b8795 100644 (file)
@@ -1,3 +1,11 @@
+2013-05-23  RĂ¼diger Sonderfeld  <ruediger@c-plusplus.de>
+
+       * 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.
+
 2013-05-23  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp-gvfs.el (top):
index 945e82e..3a64aad 100644 (file)
@@ -360,9 +360,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
index 47bec5e..3792ab4 100644 (file)
@@ -1112,7 +1112,7 @@ buffer."
   :group 'reftex)
 
 (defcustom reftex-bibliography-commands
-  '("bibliography" "nobibliography" "setupbibtex\\[.*?database=")
+  '("bibliography" "nobibliography" "setupbibtex\\[.*?database=" "addbibresource")
   "LaTeX commands which specify the BibTeX databases to use with the document."
   :group 'reftex-citation-support
   :type '(repeat string))