[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 5d951fea03 09/14: Fix bibtex dial
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 5d951fea03 09/14: Fix bibtex dialect |
Date: |
Sat, 16 Apr 2022 04:28:44 -0400 (EDT) |
branch: externals/auctex
commit 5d951fea037f77b47cdbd72a44bd812715fd46da
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Fix bibtex dialect
* tex.el (TeX-auto-store): Use `(or :bibtex :latex)' instead of
`:bibtex' as dialect argument for `TeX-add-style-hook' when saving auto
file for BibTeX file.
---
tex.el | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/tex.el b/tex.el
index 9188ccd74d..6b80b4e80c 100644
--- a/tex.el
+++ b/tex.el
@@ -4101,7 +4101,8 @@ If TEX is a directory, generate style files for all files
in the directory."
LaTeX-verbatim-macros-with-delims-local))
(verb-macros-braces (when (boundp
'LaTeX-verbatim-macros-with-braces-local)
LaTeX-verbatim-macros-with-braces-local))
- (dialect TeX-style-hook-dialect))
+ (dialect TeX-style-hook-dialect)
+ (bibtex-p (eq major-mode 'bibtex-mode)))
(TeX-unload-style style)
(with-current-buffer (generate-new-buffer file)
(erase-buffer)
@@ -4131,7 +4132,21 @@ If TEX is a directory, generate style files for all
files in the directory."
(mapc (lambda (el) (TeX-auto-insert el style))
TeX-auto-parser)
(insert ")")
- (if dialect (insert (concat "\n " (prin1-to-string dialect))))
+ (if dialect (insert (concat
+ "\n "
+ (prin1-to-string
+ (if bibtex-p
+ ;; Add :latex since functions such
+ ;; as `LaTeX-add-bibitems' are
+ ;; only meaningful in LaTeX
+ ;; document buffer.
+ ;; FIXME: BibTeX is available to
+ ;; plain TeX through eplain
+ ;;
(<URL:https://tug.org/eplain/doc/eplain.html#Citations>).
+ ;; It would be nice if AUCTeX
+ ;; supports such usage.
+ `'(or ,dialect :latex)
+ dialect)))))
(insert ")\n\n")
(write-region (point-min) (point-max) file nil 'silent)
(kill-buffer (current-buffer))))
- [AUCTeX-diffs] [elpa] externals/auctex updated (2568505587 -> b91f15b3a3), Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex db75369df3 05/14: * latex.el (TeX-read-hook): Support 'include/excluded' hook., Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 86de20d0b2 02/14: Make prettification work reliably, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex aae80c4725 11/14: ; Minor Doc fix, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 12f0b610a1 06/14: * style/ltx-base.el: Update style., Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 5d951fea03 09/14: Fix bibtex dialect,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex df8d6fe772 04/14: Document how to bump the required Emacs version, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 0b24e363f8 01/14: Improve indentation after '\end{macrocode}' in docTeX mode, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex a25652ffe2 10/14: Update style/fbox.el to package version 0.06, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex f8d19d5cbb 07/14: ; * style/ltx-base.el ("ltx-base"): Fix entry for "@addtoreset"., Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 62f8341717 03/14: Lift required GNU Emacs version to 25.1, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 35b71dfe3f 08/14: Add new style/etoolbox.el, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex b91f15b3a3 14/14: Release GNU AUCTeX 13.1.3, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex c534b17704 12/14: Avoid using variadic setq-local, Tassilo Horn, 2022/04/16
- [AUCTeX-diffs] [elpa] externals/auctex 615d6f2052 13/14: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2022/04/16