[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 56fb536e78: Fix regression in tex alignment
From: |
Lars Ingebrigtsen |
Subject: |
master 56fb536e78: Fix regression in tex alignment |
Date: |
Sat, 2 Apr 2022 10:37:16 -0400 (EDT) |
branch: master
commit 56fb536e78f3e3019b85995ba1d788065c3ac415
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix regression in tex alignment
* lisp/align.el (align-rules-list): Make alignment in tex mode
work better again (bug#54663).
---
lisp/align.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/align.el b/lisp/align.el
index b054b1bac4..9364d54665 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 56fb536e78: Fix regression in tex alignment,
Lars Ingebrigtsen <=