[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex d54e747 19/95: Fix font-latex-after-hacking-loca
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex d54e747 19/95: Fix font-latex-after-hacking-local-variables on XEmacs |
Date: |
Sun, 16 Apr 2017 01:26:47 -0400 (EDT) |
branch: externals/auctex
commit d54e7472dcc017aab135819efb899ab2dacb9a4f
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Fix font-latex-after-hacking-local-variables on XEmacs
* font-latex.el (font-latex-after-hacking-local-variables): Cater for the
fact that file-local-variables-alist isn't there in XEmacs and older
Emacs versions (bug#25564).
---
font-latex.el | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index 91cb0de..8100ded 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1416,14 +1416,26 @@ modified. Such variables include
`LaTeX-verbatim-environments-local',
`LaTeX-verbatim-macros-with-braces-local',
`LaTeX-verbatim-macros-with-delims-local'."
- ;; Note to self: directory-local variables are also added to
- ;; file-local-variables-alist.
- (let ((hacked-local-vars (mapcar #'car file-local-variables-alist)))
- (when (or (memq 'LaTeX-verbatim-environments-local hacked-local-vars)
- (memq 'LaTeX-verbatim-macros-with-braces-local hacked-local-vars)
- (memq 'LaTeX-verbatim-macros-with-delims-local hacked-local-vars))
- ;; Ok, we need to refresh fontification.
- (font-latex-update-font-lock t))))
+ (when (if (boundp 'file-local-variables-alist)
+ ;; In Emacs we know if the value came from file or directory
+ ;; locals. Note to self: directory-local variables are also added
+ ;; to file-local-variables-alist.
+ (let ((hacked-local-vars (mapcar #'car file-local-variables-alist)))
+ (or (memq 'LaTeX-verbatim-environments-local hacked-local-vars)
+ (memq 'LaTeX-verbatim-macros-with-braces-local
hacked-local-vars)
+ (memq 'LaTeX-verbatim-macros-with-delims-local
hacked-local-vars)))
+ ;; In XEmacs and old Emacs versions we don't know if a buffer-local
+ ;; variable has been set by a file-local variables block or somehow
+ ;; else. So we trigger a refresh if any of those variables has a
+ ;; non-nil local binding.
+ (or (and LaTeX-verbatim-environments-local
+ (local-variable-p LaTeX-verbatim-environments-local))
+ (and LaTeX-verbatim-macros-with-braces-local
+ (local-variable-p LaTeX-verbatim-macros-with-braces-local))
+ (and LaTeX-verbatim-macros-with-delims-local
+ (local-variable-p LaTeX-verbatim-macros-with-delims-local))))
+ ;; Ok, we need to refresh fontification.
+ (font-latex-update-font-lock t)))
;;; Utility functions
- [elpa] externals/auctex ccd67c2 17/95: ; * style/breqn.el ("breqn"): Add missing starred version of array., (continued)
- [elpa] externals/auctex ccd67c2 17/95: ; * style/breqn.el ("breqn"): Add missing starred version of array., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c886a1b 10/95: Check if label is defined before adding it to known labels, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 74766b4 03/95: Remove also a gitignore, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7230fec 07/95: * latex.el (LaTeX-newline): Make interactive. See bug#24412., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a77e75a 15/95: ; * doc/changes.texi: Improve wording., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 76a2b5f 18/95: * tex-ispell.el: Add support for enviroments from breqn.sty., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 558da5f 24/95: * latex/preview.dtx: Fix example for \PreviewMacro* macro., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 73ccc38 22/95: Simplify addition of entirely skipped environments, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4f2a322 16/95: Fix plain-TeX-auto-regexp-list docstring, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex fbe0782 11/95: Add `NO-INSERT' argument to `LaTeX-label', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex d54e747 19/95: Fix font-latex-after-hacking-local-variables on XEmacs,
Tassilo Horn <=
- [elpa] externals/auctex 1b3f6e8 13/95: Update style/listings.el to use `LaTeX-env-label-as-keyval', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex ec7caff 14/95: Add new style/breqn.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 5708567 26/95: Improve parsing process in style/color.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c21aff6 31/95: ; Add `LaTeX-equation-label' as symbol to `LaTeX-label-alist', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c0f3659 21/95: Fix TeX-view-predicate-list-builtin predicates wrt class opts, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 6c91dba 20/95: Fix number of arguments of local-variable-p in XEmacs, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex e18e46e 32/95: * latex.el (LaTeX-label): Eliminate premature returning of label., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex f12dbb2 27/95: Improve parsing process in style/xcolor.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 85c4656 12/95: Add function to put labels in opt. argument of environments, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c112a9e 34/95: ; * style/empheq.el (LaTeX-empheq-item-equation): Delete unnecessary *., Tassilo Horn, 2017/04/16