monnier pushed a commit to branch externals/auctex
in repository elpa.
commit a200d4a0b344ab0a1f4fe6d2ada06d621a190fe8
Author: Mosè Giordano <[email protected]>
Date: Tue Nov 5 16:41:17 2013 +0100
Run style files of the bibliography files when inserting bibliography
macros.
* latex.el (TeX-arg-bibliography): Run style files associated to
the bibliography database files.
* style/biblatex.el (LaTeX-arg-addbibresource): Run style file
associated to the bibliography database file.
---
ChangeLog | 5 +++++
latex.el | 3 +++
style/biblatex.el | 4 ++++
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 376305c..3eba1f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
2013-11-05 Mos� Giordano <[email protected]>
+ * latex.el (TeX-arg-bibliography): Run style files associated to
+ the bibliography database files.
+
* style/biblatex.el ("biblatex"): Do not quote at all
`TeX-arg-key-val' arguments.
+ (LaTeX-arg-addbibresource): Run style file associated to the
+ bibliography database file.
2013-11-03 Mos� Giordano <[email protected]>
diff --git a/latex.el b/latex.el
index 95b6ab6..095a83c 100644
--- a/latex.el
+++ b/latex.el
@@ -2061,6 +2061,9 @@ string."
'bibinputs 'local t t))
BibTeX-global-files))))
(apply 'LaTeX-add-bibliographies styles)
+ ;; Run style files associated to the bibliography database files in order
to
+ ;; immediately fill `LaTeX-bibitem-list'.
+ (mapc 'TeX-run-style-hooks styles)
(TeX-argument-insert (mapconcat 'identity styles ",") optional)))
(defun TeX-arg-corner (optional &optional prompt)
diff --git a/style/biblatex.el b/style/biblatex.el
index f10c571..ce22495 100644
--- a/style/biblatex.el
+++ b/style/biblatex.el
@@ -169,6 +169,10 @@ string."
inputs 'local t nil))
(symbol-value files))))
(LaTeX-add-bibliographies database)
+ ;; Run style file associated to the bibliography database file in order to
+ ;; immediately fill `LaTeX-bibitem-list'. We need to strip the extension
+ ;; because AUCTeX style files don't use it.
+ (TeX-run-style-hooks (file-name-sans-extension database))
(TeX-argument-insert database optional)))
;; Support for multicite commands, see § 3.7.3 of Biblatex reference manual.