[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa d3d05d4 12/26: Make some buffer-local vars document-local.
From: |
Tassilo Horn |
Subject: |
[elpa] elpa d3d05d4 12/26: Make some buffer-local vars document-local. |
Date: |
Tue, 27 Jan 2015 12:11:15 +0000 |
branch: elpa
commit d3d05d462afbe69687277f7fc0dd09e6ef2ff113
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Make some buffer-local vars document-local.
* tex.el (TeX-auto-store): Write LaTeX-verbatim-*-local variables
to auto file to make them document-local.
---
ChangeLog | 3 +++
tex.el | 17 ++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 142694c..641764b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-12-20 Tassilo Horn <address@hidden>
+ * tex.el (TeX-auto-store): Write LaTeX-verbatim-*-local variables
+ to auto file to make them document-local.
+
* style/minted.el (LaTeX-minted-auto-cleanup): Recognize macros
generated by \newmint, \newmintinline, and \newmintedfile, too.
diff --git a/tex.el b/tex.el
index 0ef5399..713a476 100644
--- a/tex.el
+++ b/tex.el
@@ -3699,7 +3699,10 @@ If TEX is a directory, generate style files for all
files in the directory."
(class-opts (if (boundp 'LaTeX-provided-class-options)
LaTeX-provided-class-options))
(pkg-opts (if (boundp 'LaTeX-provided-package-options)
- LaTeX-provided-package-options)))
+ LaTeX-provided-package-options))
+ (verb-envs LaTeX-verbatim-environments-local)
+ (verb-macros-delims LaTeX-verbatim-macros-with-delims-local)
+ (verb-macros-braces LaTeX-verbatim-macros-with-braces-local))
(TeX-unload-style style)
(with-current-buffer (generate-new-buffer file)
(erase-buffer)
@@ -3711,6 +3714,18 @@ If TEX is a directory, generate style files for all
files in the directory."
(when pkg-opts
(insert "\n (TeX-add-to-alist 'LaTeX-provided-package-options\n"
" '" (prin1-to-string pkg-opts) ")"))
+ (dolist (env verb-envs)
+ (insert
+ (format "\n (add-to-list 'LaTeX-verbatim-environments-local
\"%s\")"
+ env)))
+ (dolist (env verb-macros-braces)
+ (insert
+ (format "\n (add-to-list 'LaTeX-verbatim-macros-with-braces-local
\"%s\")"
+ env)))
+ (dolist (env verb-macros-delims)
+ (insert
+ (format "\n (add-to-list 'LaTeX-verbatim-macros-with-delims-local
\"%s\")"
+ env)))
(mapc (lambda (el) (TeX-auto-insert el style))
TeX-auto-parser)
(insert "))\n\n")
- [elpa] elpa 81512a2 24/26: Fix bug#19673, (continued)
- [elpa] elpa 81512a2 24/26: Fix bug#19673, Tassilo Horn, 2015/01/27
- [elpa] elpa 8cd2b07 22/26: Fix indentation in auto files., Tassilo Horn, 2015/01/27
- [elpa] elpa 5154e91 21/26: Remove already resolved FIXME., Tassilo Horn, 2015/01/27
- [elpa] elpa 5734441 18/26: Add new styles., Tassilo Horn, 2015/01/27
- [elpa] elpa 18ee3e9 17/26: Add `Form' environment needed for PDF and HTML forms., Tassilo Horn, 2015/01/27
- [elpa] elpa b54c26a 16/26: Fix doc build, Tassilo Horn, 2015/01/27
- [elpa] elpa 2487022 15/26: Update changes.texi, Tassilo Horn, 2015/01/27
- [elpa] elpa df97f94 13/26: Improve minted style., Tassilo Horn, 2015/01/27
- [elpa] elpa fff9412 14/26: Add hva file assoc to auto-mode-alist (bug#19426), Tassilo Horn, 2015/01/27
- [elpa] elpa 49ee91a 03/26: Fix byte-compile warnings., Tassilo Horn, 2015/01/27
- [elpa] elpa d3d05d4 12/26: Make some buffer-local vars document-local.,
Tassilo Horn <=
- [elpa] elpa ddd6b97 11/26: Improve minted style., Tassilo Horn, 2015/01/27
- [elpa] elpa 6e94ea0 09/26: Add (start of an) minted style., Tassilo Horn, 2015/01/27
- [elpa] elpa ff1f544 10/26: Fix encoding file:// uri., Tassilo Horn, 2015/01/27
- [elpa] elpa 63bcbcd 08/26: Obsolete LaTeX-verbatim-regexp defcustom, Tassilo Horn, 2015/01/27
- [elpa] elpa 0cc29f9 07/26: Fix void-variable error., Tassilo Horn, 2015/01/27
- [elpa] elpa fc9a240 06/26: Fix bug#19398 in TeX-evince-sync-view, Tassilo Horn, 2015/01/27
- [elpa] elpa c7e1e47 05/26: [Fix #19281] Allow moodifying environments with macros in their names., Tassilo Horn, 2015/01/27
- [elpa] elpa 8dd1455 04/26: Fix in style/babel.el., Tassilo Horn, 2015/01/27
- [elpa] elpa 8c6a5ae 02/26: [Fix #19301] Fix closing bracket in style/mathtools.el., Tassilo Horn, 2015/01/27
- [elpa] elpa 6bfd4c8 01/26: Add new styles., Tassilo Horn, 2015/01/27