From: Arash Esbati Date: Thu, 20 Jan 2022 18:20:34 +0000 (+0100) Subject: Remove matching of whitespaces in LaTeX environment names X-Git-Tag: emacs-29.0.90~2890 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=808917b3fc380d66e9791dc5769298554f41b3dd;p=emacs.git Remove matching of whitespaces in LaTeX environment names * lisp/textmodes/ispell.el (ispell-tex-skip-alists): Don't match arbitrary number of whitespaces in LaTeX environment names. (bug#53390) --- diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index ae3b18ed179..6382b402c06 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1673,14 +1673,13 @@ Valid forms include: ("\\\\bibliographystyle" ispell-tex-arg-end) ("\\\\makebox" ispell-tex-arg-end 0) ("\\\\e?psfig" ispell-tex-arg-end) - ("\\\\document\\(class\\|style\\)" . - "\\\\begin[ \t\n]*{[ \t\n]*document[ \t\n]*}")) + ("\\\\document\\(class\\|style\\)" . "\\\\begin[ \t\n]*{document}")) (;; delimited with \begin. In ispell: displaymath, eqnarray, eqnarray*, ;; equation, minipage, picture, tabular, tabular* (ispell) ("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0) ("list" ispell-tex-arg-end 2) - ("program" . "\\\\end[ \t\n]*{[ \t\n]*program[ \t\n]*}") - ("verbatim\\*?" . "\\\\end[ \t\n]*{[ \t\n]*verbatim\\*?[ \t\n]*}")))) + ("program" . "\\\\end[ \t]*{program}") + ("verbatim\\*?" . "\\\\end[ \t]*{verbatim\\*?}")))) "Lists of regions to be skipped in TeX mode. First list is used raw. Second list has key placed inside \\begin{}.