[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa 255efa3 23/35: Write TeX-style-hook-dialect to parsed file
From: |
Tassilo Horn |
Subject: |
[elpa] elpa 255efa3 23/35: Write TeX-style-hook-dialect to parsed file |
Date: |
Sun, 31 Jan 2016 16:05:40 +0000 |
branch: elpa
commit 255efa3860d3ae164e5c26482d8c143c91c3c7e5
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Write TeX-style-hook-dialect to parsed file
* latex.el (BibTeX-auto-store): Run `TeX-bibtex-set-BibTeX-dialect'.
* tex.el (TeX-auto-store): Store `TeX-style-hook-dialect' from buffer
and write it to parsed file when present.
---
latex.el | 1 +
tex.el | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/latex.el b/latex.el
index ba2882c..e46fb86 100644
--- a/latex.el
+++ b/latex.el
@@ -1745,6 +1745,7 @@ It will setup BibTeX to store keys in an auto file."
(if (boundp 'local-write-file-hooks)
(add-hook 'local-write-file-hooks 'TeX-safe-auto-write)
(add-hook 'write-file-hooks 'TeX-safe-auto-write))
+ (TeX-bibtex-set-BibTeX-dialect)
(set (make-local-variable 'TeX-auto-update) 'BibTeX)
(set (make-local-variable 'TeX-auto-untabify) nil)
(set (make-local-variable 'TeX-auto-parse-length) 999999)
diff --git a/tex.el b/tex.el
index 72750a9..c2c247c 100644
--- a/tex.el
+++ b/tex.el
@@ -3864,7 +3864,8 @@ If TEX is a directory, generate style files for all files
in the directory."
(verb-macros-delims (when (boundp
'LaTeX-verbatim-macros-with-delims-local)
LaTeX-verbatim-macros-with-delims-local))
(verb-macros-braces (when (boundp
'LaTeX-verbatim-macros-with-braces-local)
- LaTeX-verbatim-macros-with-braces-local)))
+ LaTeX-verbatim-macros-with-braces-local))
+ (dialect TeX-style-hook-dialect))
(TeX-unload-style style)
(with-current-buffer (generate-new-buffer file)
(erase-buffer)
@@ -3890,7 +3891,9 @@ If TEX is a directory, generate style files for all files
in the directory."
env)))
(mapc (lambda (el) (TeX-auto-insert el style))
TeX-auto-parser)
- (insert "))\n\n")
+ (insert ")")
+ (if dialect (insert (concat "\n " (prin1-to-string dialect))))
+ (insert ")\n\n")
(write-region (point-min) (point-max) file nil 'silent)
(kill-buffer (current-buffer))))
(if (file-exists-p (concat file "c"))
- [elpa] elpa 5940550 10/35: Add new style/theorem.el, (continued)
- [elpa] elpa 5940550 10/35: Add new style/theorem.el, Tassilo Horn, 2016/01/31
- [elpa] elpa 15ebec9 12/35: Rename TeX-after-compilation-finished-hook to -functions, Tassilo Horn, 2016/01/31
- [elpa] elpa 23612ac 15/35: Delete .cvsignore, Tassilo Horn, 2016/01/31
- [elpa] elpa 8cd9b0d 14/35: Fix query prompt, Tassilo Horn, 2016/01/31
- [elpa] elpa 2ebd71d 16/35: Fix bug in `preview-LaTeX-disable-pdfoutput', Tassilo Horn, 2016/01/31
- [elpa] elpa d2c7bb3 19/35: Fix bug in subfigure style file, Tassilo Horn, 2016/01/31
- [elpa] elpa 4f618ec 18/35: Add some AMS arrows to LaTeX-math-default, Tassilo Horn, 2016/01/31
- [elpa] elpa d68a089 11/35: Add new style/ntheorem.el, Tassilo Horn, 2016/01/31
- [elpa] elpa bafe761 17/35: url macro accepts only braces in hyperref, Tassilo Horn, 2016/01/31
- [elpa] elpa 107b249 21/35: Convert tex-font.el to UTF-8 coding, Tassilo Horn, 2016/01/31
- [elpa] elpa 255efa3 23/35: Write TeX-style-hook-dialect to parsed file,
Tassilo Horn <=
- [elpa] elpa 58386b9 25/35: Improve font related queries, Tassilo Horn, 2016/01/31
- [elpa] elpa 601689e 20/35: Move \iff macro to Arrows section of LaTeX-math-default, Tassilo Horn, 2016/01/31
- [elpa] elpa be525cf 22/35: Add new dialects, Tassilo Horn, 2016/01/31
- [elpa] elpa f72d2a9 26/35: Improve font related queries, Tassilo Horn, 2016/01/31
- [elpa] elpa 09cc5d1 24/35: Improve font related queries, Tassilo Horn, 2016/01/31
- [elpa] elpa 34a0ecc 30/35: Add completion for environments in ConTeXt, Tassilo Horn, 2016/01/31
- [elpa] elpa e9ddab9 28/35: Code cleaning, Tassilo Horn, 2016/01/31
- [elpa] elpa d9f61d5 32/35: Capture message of LaTeX warnings, Tassilo Horn, 2016/01/31
- [elpa] elpa ba7755d 27/35: Improve style/enumitem, Tassilo Horn, 2016/01/31
- [elpa] elpa cffe98a 31/35: Use default argument of completing-read in ConTeXt-environment, Tassilo Horn, 2016/01/31