[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex d5951e6 79/95: Improve skipping of inline verbat
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex d5951e6 79/95: Improve skipping of inline verbatim macros |
Date: |
Sun, 16 Apr 2017 01:27:01 -0400 (EDT) |
branch: externals/auctex
commit d5951e68d492e6b7509fb18fdc98622c003a3c76
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Improve skipping of inline verbatim macros
* tex-ispell.el (TeX-ispell-verb-opening-delimiters)
(TeX-ispell-verb-closing-delimiters): New customizable options.
(TeX-ispell-skip-setcar): Skip inline verbatim macros from
listings and fancyvrb package. Use new variables for minted
package.
---
tex-ispell.el | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/tex-ispell.el b/tex-ispell.el
index 7fba305..0b08f40 100644
--- a/tex-ispell.el
+++ b/tex-ispell.el
@@ -72,6 +72,18 @@
(require 'tex)
+(defcustom TeX-ispell-verb-opening-delimiters "{!|#\"*/+-"
+ "String with all opening delimiters for verb macros.
+The elements must match `TeX-ispell-verb-closing-delimiters'."
+ :group 'TeX-misc
+ :type 'string)
+
+(defcustom TeX-ispell-verb-closing-delimiters "}!|#\"*/+-"
+ "String with all closing delimiters for verb macros.
+The elements must match `TeX-ispell-verb-opening-delimiters'."
+ :group 'TeX-misc
+ :type 'string)
+
;; Add new macros here:
(eval-when-compile
(defvar TeX-ispell-skip-cmds-list
@@ -281,19 +293,23 @@ Environments for math or verbatim text are candidates for
this list."))
;; Add others delimited here:
(TeX-ispell-skip-setcar
- '(;; LaTeX-base
+ `(;; LaTeX-base
("\\\\(" . "\\\\)")
("\\\\raisebox" TeX-ispell-tex-arg-end 1 2 0)
;; booktabs.sty
("\\\\cmidrule" . "{[-0-9]+}")
;; fontspec.sty
("\\\\fontspec" TeX-ispell-tex-arg-end 1 1 0)
+ ;; listings.sty & fancyvrb.sty:
+ (,(concat "\\\\\\(lstinline\\|Verb\\)\\(\\[[^]]*\\]\\)?"
+ "[" TeX-ispell-verb-opening-delimiters "]")
+ .
+ ,(concat "[" TeX-ispell-verb-closing-delimiters "]"))
;; minted.sty
- ("\\\\mint\\(inline\\)?\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}{" . "}")
- ("\\\\mint\\(inline\\)?\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}|" . "|")
- ("\\\\mint\\(inline\\)?\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}#" . "#")
- ("\\\\mint\\(inline\\)?\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}\\+" . "\\+")
- ("\\\\mint\\(inline\\)?\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}\\*" . "\\*")))
+ (,(concat "\\\\mint\\(inline\\)?\\(\\[[^]]*\\]\\)?{\\([^}]+\\)}"
+ "[" TeX-ispell-verb-opening-delimiters "]")
+ .
+ ,(concat "[" TeX-ispell-verb-closing-delimiters "]"))))
;; Add environments here:
- [elpa] externals/auctex 2116248 94/95: * doc/changes.texi: Update with recent changes., (continued)
- [elpa] externals/auctex 2116248 94/95: * doc/changes.texi: Update with recent changes., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 65e56e1 93/95: ; Make sure that `regex-opt' builds a shy group., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex e6c95e9 78/95: * tests/latex/fontification-verb-macros.tex: New file., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a8dba19 60/95: Fix addition of key=val's, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4688310 65/95: Add new compat function `TeX-replace-regexp-in-string', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 6b5a7e0 56/95: Improve fallback for indentation when & is omitted, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 592297d 64/95: Avoid altering user option as much as possible, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7a382d2 72/95: * texmathp.el (texmathp-tex-commands-default): Add entries for empheq.sty., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 2fef12e 80/95: ; Clear out byte compile warning, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 51d8d3d 75/95: Recognize optional argument in verb macros with delimiters/braces, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex d5951e6 79/95: Improve skipping of inline verbatim macros,
Tassilo Horn <=
- [elpa] externals/auctex a45821b 92/95: ; * latex.el (LaTeX-section-list-add-locally): Fix doc string., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex d82f66c 91/95: ; * style/paracol.el (TeX-arg-paracol-switchcolumn*): Guard point movement., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b2f69e1 84/95: Fix detection of bibliography files with dots in path, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex ee42d37 73/95: Enhance Japanese class files support, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 334da3d 95/95: Merge branch 'master' into externals/auctex, Tassilo Horn, 2017/04/16