Subject: bug#69069: 14.0.2; table alignment by align-current gives wrong result

From: Ikumi Keita <[email-masked]>
Date: Mon, 12 Feb 2024 17:08:42 +0900

Hi Uwe,

>>>>> Uwe Siart <[email-masked]> writes:
> When I do 'M-x align-current' on

> ,----
> | Mat.-Nr. & Nachname & Vorname & Unterschrift \\
> | Mat. No. & Surname  & Name    & Signature    \\
> `----

> (which would be the expected result, so align-current should do nothing
> here) I get

> ,----
> | Mat.-Nr. & Nachname & Vorname & Unterschrift \\
> | Mat.     No.        & Surname & Name         & Signature \\
> `----

> instead. It seems like align-current gets confused by whitespace inside
> cell content.

Looking at align.el, there are several reference on lower case mode
names:
----------------------------------------------------------------------
(defcustom align-tex-modes
  '(tex-mode plain-tex-mode latex-mode slitex-mode)
  "A list of modes whose syntax resembles TeX (and family)."
  :type '(repeat symbol)
  :group 'align)
[...]
(defcustom align-rules-list
[...]
    (tex-tabbing-separator
     (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))))
[...]
----------------------------------------------------------------------
For the time being, please change the value of these customize options.

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW