[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa 22f9450 30/35: Use `TeX-ispell-skip-setcar' on user defined
From: |
Tassilo Horn |
Subject: |
[elpa] elpa 22f9450 30/35: Use `TeX-ispell-skip-setcar' on user defined index macros |
Date: |
Thu, 1 Sep 2016 15:57:50 +0000 (UTC) |
branch: elpa
commit 22f94507cdf768b49bc480a3bdd212e8d2ac7824
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
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.
---
style/splitidx.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
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))
- [elpa] elpa 7f91fb9 06/35: More about TeX-raise-frame-function, (continued)
- [elpa] elpa 7f91fb9 06/35: More about TeX-raise-frame-function, Tassilo Horn, 2016/09/01
- [elpa] elpa 97c992d 09/35: Catch up with deletion of \commondummies in texinfo.tex, Tassilo Horn, 2016/09/01
- [elpa] elpa 4f15be6 15/35: ; Remove wrong entries for varioref.sty, Tassilo Horn, 2016/09/01
- [elpa] elpa 7828a43 16/35: ; Remove wrong entries for cleveref.sty, Tassilo Horn, 2016/09/01
- [elpa] elpa bb9f427 01/35: Grab focus on Evince inverse search, Tassilo Horn, 2016/09/01
- [elpa] elpa dfe0937 12/35: Reset `LaTeX-auto-xcolor-definecolorset' before parsing, Tassilo Horn, 2016/09/01
- [elpa] elpa 8c57d38 11/35: Fix doc string for curve quoting style in Emacs 25, Tassilo Horn, 2016/09/01
- [elpa] elpa e259e40 26/35: Add a Japanese error message translation, Tassilo Horn, 2016/09/01
- [elpa] elpa ce347e6 03/35: Document how to disable filling for specific environments, Tassilo Horn, 2016/09/01
- [elpa] elpa b2ebbb3 29/35: Use `TeX-ispell-skip-setcdr' on user defined listing environments, Tassilo Horn, 2016/09/01
- [elpa] elpa 22f9450 30/35: Use `TeX-ispell-skip-setcar' on user defined index macros,
Tassilo Horn <=
- [elpa] elpa 131c537 14/35: Document interaction with Ispell, Tassilo Horn, 2016/09/01
- [elpa] elpa ba10cf0 04/35: New defcustom TeX-raise-frame-function, Tassilo Horn, 2016/09/01
- [elpa] elpa 40b3518 13/35: Add new spell checking dictionary tex-ispell.el, Tassilo Horn, 2016/09/01
- [elpa] elpa d0e8c1c 32/35: Add new style/paracol.el, Tassilo Horn, 2016/09/01
- [elpa] elpa fcb6424 27/35: Revise document for Japanese TeX, Tassilo Horn, 2016/09/01
- [elpa] elpa 12bfe80 33/35: Add new style/menukeys.el, Tassilo Horn, 2016/09/01
- [elpa] elpa 803894c 19/35: Add new style/empheq.el, Tassilo Horn, 2016/09/01
- [elpa] elpa 073b17a 23/35: Update style/mathtools.el to v1.18 of mathtools.sty, Tassilo Horn, 2016/09/01
- [elpa] elpa 5beae62 25/35: Set the right coding systems for Japanese TeX process, Tassilo Horn, 2016/09/01
- [elpa] elpa a474cb4 35/35: Release GNU AUCTeX 11.89.5, Tassilo Horn, 2016/09/01