From: Arash Esbati Date: Tue, 23 Jul 2024 20:40:41 +0000 (+0200) Subject: Delete matching of whitespace in ispell's LaTeX env names X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a18d615db00d84e4e65193e43e44bd5d51810153;p=emacs.git Delete matching of whitespace in ispell's LaTeX env names * lisp/textmodes/ispell.el (ispell-begin-tex-skip-regexp): Remove matching of arbitrary whitespaces in LaTeX environment names when wrapping them inside \begin{}. (bug#72262) (cherry picked from commit ebac13844294483f708bb92699ee7da7a1b2db21) --- diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 2e97043fdb6..74058b47907 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -3318,9 +3318,7 @@ Generated from `ispell-tex-skip-alists'." "\\|" ;; keys wrapped in begin{} (mapconcat (lambda (lst) - (concat "\\\\begin[ \t\n]*{[ \t\n]*" - (car lst) - "[ \t\n]*}")) + (concat "\\\\begin[ \t\n]*{" (car lst) "}")) (car (cdr ispell-tex-skip-alists)) "\\|")))