summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-04-02 16:36:39 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-02 16:36:39 +0200
commit56fb536e78f3e3019b85995ba1d788065c3ac415 (patch)
tree2b3994b3ca5fca74d161d693575d6eacd1176fde
parent02ef00d89c64d713f29f4ed12dbcae9f8d31bb9a (diff)
downloademacs-56fb536e78f3e3019b85995ba1d788065c3ac415.tar.gz
Fix regression in tex alignment
* lisp/align.el (align-rules-list): Make alignment in tex mode work better again (bug#54663).
-rw-r--r--lisp/align.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/align.el b/lisp/align.el
index b054b1bac47..9364d546654 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -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.