[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 189/299: Run style files of the bibliography files when inserting
From: |
Stefan Monnier |
Subject: |
[elpa] 189/299: Run style files of the bibliography files when inserting bibliography macros. |
Date: |
Sun, 02 Nov 2014 03:11:21 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit a200d4a0b344ab0a1f4fe6d2ada06d621a190fe8
Author: Mosè Giordano <address@hidden>
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 <address@hidden>
+ * 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 <address@hidden>
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.
- [elpa] 174/299: Enhance brace pairing feature., (continued)
- [elpa] 174/299: Enhance brace pairing feature., Stefan Monnier, 2014/11/01
- [elpa] 176/299: Fix in TeX-arg-insert-braces. Again., Stefan Monnier, 2014/11/01
- [elpa] 181/299: Fix typos., Stefan Monnier, 2014/11/01
- [elpa] 179/299: Docs for paired braces feature., Stefan Monnier, 2014/11/01
- [elpa] 178/299: Add new possible value for `TeX-insert-macro-default-style'., Stefan Monnier, 2014/11/01
- [elpa] 177/299: Add new customizable variable TeX-insert-braces-alist., Stefan Monnier, 2014/11/01
- [elpa] 182/299: Add indentation for tabular environment., Stefan Monnier, 2014/11/01
- [elpa] 183/299: Use enhanced tabular indentation for more envs., Stefan Monnier, 2014/11/01
- [elpa] 187/299: Fix in biblatex style file., Stefan Monnier, 2014/11/01
- [elpa] 188/299: Really fix bug in biblatex style file., Stefan Monnier, 2014/11/01
- [elpa] 189/299: Run style files of the bibliography files when inserting bibliography macros.,
Stefan Monnier <=
- [elpa] 186/299: Add narrowing commands., Stefan Monnier, 2014/11/01
- [elpa] 190/299: Document missing folding variables., Stefan Monnier, 2014/11/01
- [elpa] 193/299: void-function error fix., Stefan Monnier, 2014/11/01
- [elpa] 184/299: Mention new tabular indentation in changes.texi., Stefan Monnier, 2014/11/01
- [elpa] 185/299: Add completion for ProvidesPackage, ProvidesClass, and ProvidesFile., Stefan Monnier, 2014/11/01
- [elpa] 198/299: Declare expert macros and envs in biblatex style file., Stefan Monnier, 2014/11/01
- [elpa] 194/299: Distinguish normal and expert macros/envs., Stefan Monnier, 2014/11/01
- [elpa] 196/299: * bib-cite.el (bib-highlight-mouse): Change regexp to cope with multiple optional arguments of a macro., Stefan Monnier, 2014/11/01
- [elpa] 192/299: Revert "Distinguish common and advanced macros/envs.", Stefan Monnier, 2014/11/01
- [elpa] 197/299: Fix C-x ` (next-error) for compile commands., Stefan Monnier, 2014/11/01