GNU bug report logs - #75217
31.0.50; tsx-ts-mode has wonky text motions and indentation

Previous Next

Package: emacs;

Reported by: Arsen Arsenović <arsen <at> aarsen.me>

Date: Tue, 31 Dec 2024 01:39:01 UTC

Severity: minor

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Arsen Arsenović <arsen <at> aarsen.me>
Cc: Vincenzo Pupillo <v.pupillo <at> gmail.com>, 75217 <at> debbugs.gnu.org
Subject: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and indentation
Date: Mon, 13 Jan 2025 09:33:10 +0200
> A shift level extra compared to the opening < of the <H:
>
>   function F() {
>     return (
>       <H foo="bar">
>         Delete</H>
>     );
>   }
>
> Currently, the indentation engine prefers:
>
>   function F() {
>     return (
>       <H foo="bar">
>                      Delete
>       </H>
>     );
>   }
>
> ... which looks odd.

This has something to do with tsx-ts-mode--indent-compatibility-b893426
because without this function the indentation is correct.

Vincenzo, is this function still needed?




This bug report was last modified 106 days ago.

Previous Next


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