]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tex-tabbing-separator alignment rule
authorArash Esbati <arash@gnu.org>
Sat, 6 Apr 2024 19:58:03 +0000 (21:58 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Apr 2024 16:34:49 +0000 (18:34 +0200)
* lisp/align.el (align-rules-list): Remove the check of
`latex-mode' with `eq' which doesn't work with newer AUCTeX mode
names and modes defined by user with `define-derived-mode'.
(bug#69187)

(cherry picked from commit 03b23302bd326f981e1328f0e9ea9f4a40a13ee1)

lisp/align.el

index 81ccc4b5e2d6f721b2a1293c89ee002c5e16d77f..0e77a857585dd260b220ee8d62d6072ca16b38a2 100644 (file)
@@ -537,10 +537,8 @@ The possible settings for `align-region-separate' are:
      (regexp   . ,(lambda (end reverse)
                     (align-match-tex-pattern "\\\\[=>]" end reverse)))
      (group    . (1 2))
-     (modes    . align-tex-modes)
-     (repeat   . t)
-     (run-if   . ,(lambda ()
-                    (eq major-mode 'latex-mode))))
+     (modes    . '(latex-mode))
+     (repeat   . t))
 
     (tex-record-break
      (regexp   . "\\(\\s-*\\)\\\\\\\\")