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

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

[elpa] externals/auctex 1b71eb6 05/30: Add short verb characters to `isp


From: Tassilo Horn
Subject: [elpa] externals/auctex 1b71eb6 05/30: Add short verb characters to `ispell-tex-skip-alist'
Date: Fri, 25 Sep 2020 11:00:11 -0400 (EDT)

branch: externals/auctex
commit 1b71eb6142fe5dad11f2b59d7cc7daa020bc0e1c
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Add short verb characters to `ispell-tex-skip-alist'
    
    * style/shortvrb.el ("shortvrb"): Add entries in
    `LaTeX-shortvrb-chars to `ispell-tex-skip-alist' in order to skip
    verbatim content during spell checking.
---
 style/shortvrb.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/style/shortvrb.el b/style/shortvrb.el
index a8cf2a1..932df29 100644
--- a/style/shortvrb.el
+++ b/style/shortvrb.el
@@ -49,6 +49,15 @@
 (TeX-add-style-hook
  "shortvrb"
  (lambda ()
+
+   ;; Ispell: Add entries to `ispell-tex-skip-alist':
+   (when LaTeX-shortvrb-chars
+     (TeX-ispell-skip-setcar
+      (mapcar (lambda (char)
+               (let ((str (char-to-string char)))
+                 (cons str str)))
+             LaTeX-shortvrb-chars)))
+
    ;; Fontification
    (when (and LaTeX-shortvrb-chars
              (featurep 'font-latex)



reply via email to

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