auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 42dd1f1bbd55361be0494


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 42dd1f1bbd55361be0494e2f8456c2535aecb855
Date: Tue, 6 Dec 2016 10:33:11 +0000 (UTC)

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  42dd1f1bbd55361be0494e2f8456c2535aecb855 (commit)
       via  e4aba9556ca602ce069226a41121cd038877ad36 (commit)
       via  40da84e6de74bff46445043c05802fe67d36c491 (commit)
      from  79c8264b3e41efa816c96d0f3955255a95055a35 (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 42dd1f1bbd55361be0494e2f8456c2535aecb855
Author: Arash Esbati <address@hidden>
Date:   Tue Dec 6 11:31:44 2016 +0100

    Support RefTeX with `reftex-add-index-macros' in style/splitidx.el
    
    * style/splitidx.el ("splitidx"): Support RefTeX with
    `reftex-add-index-macros' and not by appending macros to
    `reftex-index-macros'.

diff --git a/style/splitidx.el b/style/splitidx.el
index a2d9be7..554c7a3 100644
--- a/style/splitidx.el
+++ b/style/splitidx.el
@@ -230,12 +230,10 @@
    (add-to-list 'TeX-complete-list
                '("|see{\\([^{}\n\r]*\\)" 1 LaTeX-index-entry-list))
 
-   ;; Append our defintion to `reftex-index-macros' in order not to
-   ;; override any user customizations.
-   (when (boundp 'reftex-index-macros)
-     (add-to-list 'reftex-index-macros
-                 `("\\sindex[]{*}" 1
-                   ,LaTeX-splitidx-sindex-reftex-quick-id-key "" nil t)))
+   ;; Tell RefTeX with `reftex-add-index-macros'
+   (when (fboundp 'reftex-add-index-macros)
+     (reftex-add-index-macros
+      `(("\\sindex[]{*}" 1 ,LaTeX-splitidx-sindex-reftex-quick-id-key "" nil 
t))))
 
    ;; 3.2 Marking up index entries
    ;; \index should be an alias for \sindex
@@ -247,10 +245,8 @@
                        (LaTeX-splitidx-newindex-list) ]
          (TeX-arg-index)))
        ;; Tell RefTeX to look in the optional arg. for the index short cut
-       (when (boundp 'reftex-index-macros)
-        (add-to-list 'reftex-index-macros
-                     '("\\index[]{*}" 1 ?i "" nil t)
-                     t))
+       (when (fboundp 'reftex-add-index-macros)
+        (reftex-add-index-macros '(("\\index[]{*}" 1 ?i "" nil t))))
        (add-to-list 'LaTeX-auto-regexp-list
                    `(,(concat
                        "\\\\index\\(?:\\[[^{}]*\\]\\)?"

commit e4aba9556ca602ce069226a41121cd038877ad36
Author: Arash Esbati <address@hidden>
Date:   Tue Dec 6 11:28:06 2016 +0100

    Support RefTeX with `reftex-add-label-environments' in style/mathtools.el
    
    * style/mathtools.el (LaTeX-mathtools-auto-cleanup, "mathtools"):
    Support RefTeX with `reftex-add-label-environments' and not by
    appending environments to `reftex-label-alist'.
    ("mathtools"): Add fontification support for referencing macros.

diff --git a/style/mathtools.el b/style/mathtools.el
index c6c4b17..a55201d 100644
--- a/style/mathtools.el
+++ b/style/mathtools.el
@@ -133,8 +133,8 @@
                   `(,env . LaTeX-item-equation) t)
       (add-to-list 'LaTeX-label-alist
                   `(,env . LaTeX-amsmath-label) t)
-      (when (boundp 'reftex-label-alist)
-       (add-to-list 'reftex-label-alist `(,env ?e nil nil t) t)))))
+      (when (fboundp 'reftex-add-label-environments)
+       (reftex-add-label-environments `((,env ?e nil nil t)))))))
 
 (add-hook 'TeX-auto-prepare-hook #'LaTeX-mathtools-auto-prepare t)
 (add-hook 'TeX-auto-cleanup-hook #'LaTeX-mathtools-auto-cleanup t)
@@ -458,13 +458,13 @@ Put line break macro on the last line.  Next, insert an 
ampersand."
                   ("multlined" . LaTeX-amsmath-label))
                 LaTeX-label-alist))
 
-   ;; RefTeX support: Add env's to `reftex-label-alist'
-   (when (boundp 'reftex-label-alist)
+   ;; RefTeX support: Add env's with `reftex-add-label-environments'
+   (when (fboundp 'reftex-add-label-environments)
      (let ((envs '(("lgathered"  ?e nil nil t)
                   ("rgathered"  ?e nil nil t)
                   ("multlined"  ?e nil nil t))))
        (dolist (env envs)
-        (add-to-list 'reftex-label-alist env t))))
+        (reftex-add-label-environments `(,env)))))
 
    ;; Fontification
    (when (and (featurep 'font-latex)
@@ -481,7 +481,10 @@ Put line break macro on the last line.  Next, insert an 
ampersand."
                                ("renewgathered"              "{{{{"))
                              'function)
      (font-latex-add-keywords '(("usetagform" "{"))
-                             'variable)))
+                             'variable)
+     (font-latex-add-keywords '(("refeq"   "{")
+                               ("noeqref" "{"))
+                             'reference)))
  LaTeX-dialect)
 
 ;;; mathtools.el ends here

commit 40da84e6de74bff46445043c05802fe67d36c491
Author: Arash Esbati <address@hidden>
Date:   Tue Dec 6 11:25:32 2016 +0100

    Support RefTeX with `reftex-add-label-environments' in style/empheq.el
    
    * style/empheq.el ("empheq"): Support RefTeX with
    `reftex-add-label-environments' and not by appending environments
    to `reftex-label-alist'.

diff --git a/style/empheq.el b/style/empheq.el
index cbafdb1..2db9b93 100644
--- a/style/empheq.el
+++ b/style/empheq.el
@@ -288,9 +288,9 @@ number of ampersands if possible."
    ;; `LaTeX-empheq-item-equation' when `M-RET' is invoked
    (add-to-list 'LaTeX-item-list '("empheq" . LaTeX-empheq-item-equation) t)
 
-   ;; Reftex support: Append definition to `reftex-label-alist'
-   (when (boundp 'reftex-label-alist)
-     (add-to-list 'reftex-label-alist '("empheq" ?e nil nil t) t))
+   ;; Reftex support: Use `reftex-add-label-environments'
+   (when (fboundp 'reftex-add-label-environments)
+     (reftex-add-label-environments '(("empheq" ?e nil nil t))))
 
    (TeX-add-symbols
     '("empheqset" (TeX-arg-key-val LaTeX-empheq-key-val-options-local))
@@ -399,8 +399,8 @@ number of ampersands if possible."
        (dolist (env envs)
         (add-to-list 'LaTeX-label-alist `(,env . LaTeX-amsmath-label) t)))
 
-     ;; RefTeX support: Append original definitions to `reftex-label-alist'
-     (when (boundp 'reftex-label-alist)
+     ;; RefTeX support: Add original definitions with 
`reftex-add-label-environments'
+     (when (fboundp 'reftex-add-label-environments)
        (let ((envs '(("AmSalign"     ?e nil nil eqnarray-like)
                     ("AmSequation"  ?e nil nil t)
                     ("AmSgather"    ?e nil nil eqnarray-like)
@@ -408,7 +408,7 @@ number of ampersands if possible."
                     ("AmSflalign"   ?e nil nil eqnarray-like)
                     ("AmSalignat"   ?e nil nil alignat-like))))
         (dolist (env envs)
-          (add-to-list 'reftex-label-alist env t))))
+          (reftex-add-label-environments `(,env)))))
 
      ;; Append original definitions to `LaTeX-item-list'; functions
      ;; are provided by amsmath.el

-----------------------------------------------------------------------

Summary of changes:
 style/empheq.el    |   12 ++++++------
 style/mathtools.el |   15 +++++++++------
 style/splitidx.el  |   16 ++++++----------
 3 files changed, 21 insertions(+), 22 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]