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. 22f94507cdf768b49bc48


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 22f94507cdf768b49bc480a3bdd212e8d2ac7824
Date: Wed, 31 Aug 2016 09:20:08 +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  22f94507cdf768b49bc480a3bdd212e8d2ac7824 (commit)
       via  b2ebbb3634b8993cc192e136495f0d4c1522d025 (commit)
       via  9e3230fbad2bc865f5e500973abb032abf7a74ea (commit)
      from  fcb6424dfcc05174ba270b4c491a76553301ed8d (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 22f94507cdf768b49bc480a3bdd212e8d2ac7824
Author: Arash Esbati <address@hidden>
Date:   Wed Aug 31 11:18:54 2016 +0200

    Use `TeX-ispell-skip-setcar' on user defined index macros
    
    * style/splitidx.el (LaTeX-splitidx-newindex-regex): Replace wrong
    `^}' with `^]'.
    (LaTeX-splitidx-auto-cleanup, "splitidx"): Use
    `TeX-ispell-skip-setcar' on user defined index macros.

diff --git a/style/splitidx.el b/style/splitidx.el
index 0c3ddf0..a2d9be7 100644
--- a/style/splitidx.el
+++ b/style/splitidx.el
@@ -96,7 +96,7 @@
 
 (defvar LaTeX-splitidx-newindex-regex
   `(,(concat "\\\\new\\(?:protected\\)?index"
-            "\\(?:\\[[^}]*\\]\\)?"
+            "\\(?:\\[[^]]*\\]\\)?"
             "{\\([^}]+\\)}")
     1 LaTeX-auto-splitidx-newindex)
   "Matches the argument of `\\newindex' from `splitidx.sty'.")
@@ -108,9 +108,11 @@
 (defun LaTeX-splitidx-auto-cleanup ()
   "Process parsed results for \"splitidx.sty\"."
   (when (LaTeX-provided-package-options-member "splitidx" "idxcommands")
-    (dolist (elt (mapcar 'car (LaTeX-splitidx-newindex-list)))
+    (dolist (elt (mapcar #'car (LaTeX-splitidx-newindex-list)))
       ;; Make every element available as a command
       (TeX-add-symbols `(,elt TeX-arg-index))
+      ;; Add new macros's to `ispell-tex-skip-alist': skip one argument
+      (TeX-ispell-skip-setcar `((,elt ispell-tex-arg-end)))
       ;; font-locking
       (when (and (featurep 'font-latex)
                 (eq TeX-install-font-lock 'font-latex-setup))
@@ -265,9 +267,11 @@
    ;; instead of \sindex[foo]{<entry>}
    (when (and (LaTeX-provided-package-options-member "splitidx" "idxcommands")
              (LaTeX-splitidx-newindex-list))
-     (dolist (elt (mapcar 'car (LaTeX-splitidx-newindex-list)))
+     (dolist (elt (mapcar #'car (LaTeX-splitidx-newindex-list)))
        ;; Make every `foo' available as a command
        (TeX-add-symbols `(,elt TeX-arg-index))
+       ;; Add new macros's to `ispell-tex-skip-alist': skip one argument
+       (TeX-ispell-skip-setcar `((,elt ispell-tex-arg-end)))
        ;; Cater for font-locking
        (when (and (featurep 'font-latex)
                  (eq TeX-install-font-lock 'font-latex-setup))

commit b2ebbb3634b8993cc192e136495f0d4c1522d025
Author: Arash Esbati <address@hidden>
Date:   Wed Aug 31 11:07:18 2016 +0200

    Use `TeX-ispell-skip-setcdr' on user defined listing environments
    
    * style/listings.el (LaTeX-listings-auto-cleanup): Use
    `TeX-ispell-skip-setcdr' on user defined lists.

diff --git a/style/listings.el b/style/listings.el
index 2d50b2c..e3a48a9 100644
--- a/style/listings.el
+++ b/style/listings.el
@@ -291,7 +291,9 @@ with user-defined values via the \"lstdefinestyle\" macro."
            (t ; No args
             (add-to-list 'LaTeX-auto-environment (list env))))
       (add-to-list 'LaTeX-indent-environment-list `(,env current-indentation) 
t)
-      (add-to-list 'LaTeX-verbatim-environments-local env)))
+      (add-to-list 'LaTeX-verbatim-environments-local env)
+      ;; Add new env's to `ispell-tex-skip-alist': skip the entire env
+      (TeX-ispell-skip-setcdr `(,(cons env (concat "\\\\end{" env "}"))))))
   (when (LaTeX-listings-lstdefinestyle-list)
     (LaTeX-listings-update-style-key)))
 

commit 9e3230fbad2bc865f5e500973abb032abf7a74ea
Author: Arash Esbati <address@hidden>
Date:   Wed Aug 31 11:04:30 2016 +0200

    Use `TeX-ispell-skip-setcdr' on user defined list environments
    
    * style/enumitem.el (LaTeX-enumitem-auto-cleanup): Use
    `TeX-ispell-skip-setcdr' on user defined lists.
    ("enumitem"): Use `TeX-ispell-skip-setcdr' on user defined lists.
    Use `TeX-argument-insert' instead of `insert'.

diff --git a/style/enumitem.el b/style/enumitem.el
index c81cd96..02e3a25 100644
--- a/style/enumitem.el
+++ b/style/enumitem.el
@@ -171,7 +171,9 @@ package.")
       ;; Tell AUCTeX about parsed description like environments.
       (when (or (string-equal type "description")
                (string-equal type "description*"))
-       (add-to-list 'LaTeX-item-list `(,env . LaTeX-item-argument)))))
+       (add-to-list 'LaTeX-item-list `(,env . LaTeX-item-argument)))
+      ;; Add new env's to `ispell-tex-skip-alist': skip the optional argument
+      (TeX-ispell-skip-setcdr `((,env ispell-tex-arg-end 0)))))
   ;; Now add the parsed env's to the local list.
   (when (LaTeX-enumitem-newlist-list)
     (setq LaTeX-enumitem-newlist-list-local
@@ -344,9 +346,10 @@ in `enumitem'-completions."
             (add-to-list 'LaTeX-item-list `(,name . LaTeX-item-argument)))
           (LaTeX-add-environments `(,name LaTeX-enumitem-env-with-opts))
           (LaTeX-add-enumitem-newlists (list name type))
-          (insert (format "{%s}" name)
-                  (format "{%s}" type))
-           (format "%s" depth)))))
+          (TeX-ispell-skip-setcdr `((,name ispell-tex-arg-end 0)))
+          (TeX-argument-insert name optional)
+          (TeX-argument-insert type optional)
+          (format "%s" depth)))))
 
     ;; \renewlist{<name>}{<type>}{<max-depth>}
     '("renewlist"

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

Summary of changes:
 style/enumitem.el |   11 +++++++----
 style/listings.el |    4 +++-
 style/splitidx.el |   10 +++++++---
 3 files changed, 17 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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