[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 8af05de02e766633d594f
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 8af05de02e766633d594ffb63a44415a0f6d2169 |
Date: |
Mon, 23 Mar 2015 12:41:31 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".
The branch, master has been updated
via 8af05de02e766633d594ffb63a44415a0f6d2169 (commit)
from ca40c6a986bbc664c89ae49c7c658fad94c9d270 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8af05de02e766633d594ffb63a44415a0f6d2169
Author: Tassilo Horn <address@hidden>
Date: Mon Mar 23 13:40:58 2015 +0100
Apply styles in reverse order
* tex.el (TeX-run-style-hooks): Apply style hooks in reverse
order. With that, a local style can modify a private or a global
style, and a private style can modify a global one.
diff --git a/ChangeLog b/ChangeLog
index e0a1036..146564f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-03-23 Tassilo Horn <address@hidden>
+
+ * tex.el (TeX-run-style-hooks): Apply style hooks in reverse
+ order. With that, a local style can modify a private or a global
+ style, and a private style can modify a global one.
+
2015-03-17 Mosè Giordano <address@hidden>
* doc/wininstall.texi: Fix a broken link.
diff --git a/tex.el b/tex.el
index 88e2336..df8369f 100644
--- a/tex.el
+++ b/tex.el
@@ -2708,7 +2708,11 @@ See variable `TeX-style-hook-dialect' for supported
dialects."
(and (TeX-shdex-in-p TeX-style-hook-dialect
(aref hook 2))
(funcall (aref hook 1))))
(t (error "Invalid style hook %S" hook))))
- (cdr-safe (TeX-assoc-string style
TeX-style-hook-list)))
+ ;; Drop the LATEX entry and then reverse the list
+ ;; of style hooks in order to run styles in the
+ ;; order global, private, local (assuming
+ ;; TeX-style-path has that ordering, too).
+ (reverse (cdr-safe (TeX-assoc-string style
TeX-style-hook-list))))
;; This happens in case some style added a new parser, and
;; now the style isn't used anymore (user deleted
;; \usepackage{style}). Then we're left over with, e.g.,
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
tex.el | 6 +++++-
2 files changed, 11 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU AUCTeX
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 8af05de02e766633d594ffb63a44415a0f6d2169,
Tassilo Horn <=