]> git.eshelyaron.com Git - emacs.git/commitdiff
Delete matching of whitespace in ispell's LaTeX env names
authorArash Esbati <arash@gnu.org>
Tue, 23 Jul 2024 20:40:41 +0000 (22:40 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 Aug 2024 14:09:42 +0000 (16:09 +0200)
* 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)

lisp/textmodes/ispell.el

index 2e97043fdb64baa98a7c6cbf1a2dd35eeb3c5eec..74058b4790734b134ecbcbbd60efa6bdb23f9227 100644 (file)
@@ -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))
              "\\|")))