emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] elpa b2ebbb3 29/35: Use `TeX-ispell-skip-setcdr' on user defined


From: Tassilo Horn
Subject: [elpa] elpa b2ebbb3 29/35: Use `TeX-ispell-skip-setcdr' on user defined listing environments
Date: Thu, 1 Sep 2016 15:57:50 +0000 (UTC)

branch: elpa
commit b2ebbb3634b8993cc192e136495f0d4c1522d025
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    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.
---
 style/listings.el |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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)))
 



reply via email to

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