diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-02 16:36:39 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-02 16:36:39 +0200 |
commit | 56fb536e78f3e3019b85995ba1d788065c3ac415 (patch) | |
tree | 2b3994b3ca5fca74d161d693575d6eacd1176fde /lisp/align.el | |
parent | 02ef00d89c64d713f29f4ed12dbcae9f8d31bb9a (diff) | |
download | emacs-56fb536e78f3e3019b85995ba1d788065c3ac415.tar.gz emacs-56fb536e78f3e3019b85995ba1d788065c3ac415.tar.bz2 emacs-56fb536e78f3e3019b85995ba1d788065c3ac415.zip |
Fix regression in tex alignment
* lisp/align.el (align-rules-list): Make alignment in tex mode
work better again (bug#54663).
Diffstat (limited to 'lisp/align.el')
-rw-r--r-- | lisp/align.el | 7 |
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. |