Fix regression in tex alignment

* lisp/align.el (align-rules-list): Make alignment in tex mode
work better again (bug#54663).
This commit is contained in:
Lars Ingebrigtsen 2022-04-02 16:36:39 +02:00
parent 02ef00d89c
commit 56fb536e78

View file

@ -546,15 +546,16 @@ The possible settings for `align-region-separate' are:
(regexp . "\\(\\s-*\\)\\\\\\\\")
(modes . align-tex-modes))
;; With a numeric prefix argument, or C-u, space delimited text
;; tables will be aligned.
;; Align space delimited text as columns.
(text-column
(regexp . "\\(^\\|\\S-\\)\\([ \t]+\\)\\(\\S-\\|$\\)")
(group . 2)
(modes . align-text-modes)
(repeat . t)
(run-if . ,(lambda ()
(not (eq '- current-prefix-arg)))))
(and (not (eq '- current-prefix-arg))
(not (apply #'provided-mode-derived-p
major-mode align-tex-modes))))))
;; With a negative prefix argument, lists of dollar figures will
;; be aligned.