>From 2dc603c32c106aa77cff23fc60a1500fdde4a5e1 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Tue, 23 Jul 2024 22:40:41 +0200 Subject: [PATCH] Delete matching of whitespaces in 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{}. --- lisp/textmodes/ispell.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 667da10d7a3..99f9e10a5a8 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -3320,9 +3320,7 @@ ispell-begin-tex-skip-regexp "\\|" ;; 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)) "\\|"))) -- 2.45.2