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


Message #37 received at 75217 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Vincenzo Pupillo <v.pupillo <at> gmail.com>,
 Arsen Arsenović <arsen <at> aarsen.me>, 75217 <at> debbugs.gnu.org
Subject: Re: bug#75217: 31.0.50;
 tsx-ts-mode has wonky text motions and indentation
Date: Sun, 2 Mar 2025 04:18:26 +0000
Juri Linkov <juri <at> linkov.net> writes:

>> 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?

Ping, Vincenzo, what do you think?




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.