GNU bug report logs - #69069
14.0.2; table alignment by align-current gives wrong result

Previous Next

Package: auctex;

Reported by: Uwe Siart <uwe.siart <at> tum.de>

Date: Mon, 12 Feb 2024 07:33:02 UTC

Severity: normal

Found in version 14.0.2

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Uwe Siart <uwe.siart <at> tum.de>
Cc: 69069 <at> debbugs.gnu.org
Subject: bug#69069: 14.0.2; table alignment by align-current gives wrong result
Date: Mon, 12 Feb 2024 17:08:42 +0900
Hi Uwe,

>>>>> Uwe Siart <uwe.siart <at> tum.de> 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




This bug report was last modified 1 year and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.