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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Arsen Arsenović <arsen@HIDDEN>; dated Tue, 31 Dec 2024 01:39:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 11 Jan 2025 19:30:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 11 14:30:37 2025
Received: from localhost ([127.0.0.1]:44973 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tWhBs-00084y-Jt
	for submit <at> debbugs.gnu.org; Sat, 11 Jan 2025 14:30:37 -0500
Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:56594)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <arsen@HIDDEN>) id 1tWhBp-00084O-Kk
 for 75217 <at> debbugs.gnu.org; Sat, 11 Jan 2025 14:30:34 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:b231:465::2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4YVpWz51gCz9snY;
 Sat, 11 Jan 2025 20:30:23 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; 
 t=1736623823;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=Pv/aEgFSddM1aZKgKR1dQT4Cl7luGx8y80GOnf1AyYc=;
 b=q1bBIAzCwDNglfL+0Y34XW83YxamNvgG98TWygn67BaGEHxRuoOFB/gS9jvTdwpI6vxCrl
 v41jhL/8n3pEcrVZuYFmDZtuHpSMQrwWAeGl3QjbCo9iyy+6GLzpy00r1kcqE8z/BfhdFz
 0gARxpJJhTZ7CBaJBhD8igCgbjhBQdSKjiEkWcbVH7vH/qQ775eZ9O8QVGv8pTo3N0aiIh
 jXekYV8z90Dixu8WY3Z3vPg7WUnQZHaCr9dxmkrj0CNbE7qUorw92ROLA2v5aBgr1ClCmv
 nfqUmXWaXT1BpxU3PSyQmDTQ/nTeyQlut/XFCHfaRQgO5F7Hl1zx+VVWGzSr6A==
From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= <arsen@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and
 indentation
In-Reply-To: <87ed19ns6m.fsf@HIDDEN> (Juri Linkov's message of "Sat, 
 11 Jan 2025 20:04:01 +0200")
References: <865xn0tywf.fsf@HIDDEN> <87ed19ns6m.fsf@HIDDEN>
Date: Sat, 11 Jan 2025 20:30:21 +0100
Message-ID: <86y0zhup0y.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Rspamd-Queue-Id: 4YVpWz51gCz9snY
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 75217
Cc: 75217 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Juri Linkov <juri@HIDDEN> writes:

>> 1. Insert the following into a tsx-ts-mode buffer:
>>
>> function F() {
>>   return (
>>     <H>Delete</H>
>>   );
>> }
>>
>> 2. Install tree-sitter-tsx v0.23.2
>> 3. M-x tsx-ts-mode RET
>> 3. M-: (goto-char 39) RET  (somewhere in the middle of "Delete")
>> 4. M-b
>> 5. Observe that point is not at the start of "Delete"
>
> This is fixed in bug#73978.

Yes, seems fixed now.

>> Following that, alter <H> to be <H foo=3D"bar"> and hit RET at the start
>> of "Delete", at this point you should see:
>>
>> function F() {
>>   return (
>>     <H foo=3D"bar">
>> 		   Delete</H>
>>   );
>> }
>>
>>
>> This is unusual.
>
> What indentation in your opinion would be correct?

A shift level extra compared to the opening < of the <H:

  function F() {
    return (
      <H foo=3D"bar">
        Delete</H>
    );
  }

Currently, the indentation engine prefers:

  function F() {
    return (
      <H foo=3D"bar">
                     Delete
      </H>
    );
  }

... which looks odd.

>> In addition, I just noticed one more thing; make a new file containing:
>>
>> function F() {
>>   return (
>>     <H>Delete</H>
>>   );
>> }
>>
>> Navigate to the start of "Delete", run M-x treesit-explore RET, hit RET
>> and tell the explorer to highlight the jsx_text corresponding to
>> "Delete", you should see that the region highlighted is not aligned with
>> the end of the word "Delete", and, in turn, all subsequent AST nodes are
>> mispositioned too.  Typing again fixes this issue.  It seems that the
>> buffer needs to be freshly-started for this to happen for some reason.
>>
>> I do not have any idea why this might be happening.
>
> I tried, but can't reproduce this treesit-explore issue.

Hmm, yes, seems that this went away also.=20=20

That's great!  Thank you so much!
=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZ4LGzV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF
MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy
c2VuLm1lAAoJEFLClDAeosSTn3kA/0INvotWCCCaZjvQtPrsqzE6BPapujZTmaoG
kMBObSRCAPsGAtfr2kNkN0QJ1DZSxRiJoMT6bpeTGHHK0A6rjg72CQ==
=cg8B
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 11 Jan 2025 18:06:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 11 13:06:13 2025
Received: from localhost ([127.0.0.1]:44735 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tWfsC-0003Mi-Ra
	for submit <at> debbugs.gnu.org; Sat, 11 Jan 2025 13:06:13 -0500
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:51091)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1tWfs8-0003ME-B1
 for 75217 <at> debbugs.gnu.org; Sat, 11 Jan 2025 13:06:11 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id AAB461C0004;
 Sat, 11 Jan 2025 18:06:00 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Arsen =?utf-8?Q?Arsenovi=C4=87?= <arsen@HIDDEN>
Subject: Re: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and
 indentation
In-Reply-To: <865xn0tywf.fsf@HIDDEN> ("Arsen =?utf-8?Q?Arsenovi=C4=87?=
 via \"Bug reports
 for GNU Emacs, the Swiss army knife of text editors\""'s message of
 "Tue, 31 Dec 2024 02:38:24 +0100")
Organization: LINKOV.NET
References: <865xn0tywf.fsf@HIDDEN>
Date: Sat, 11 Jan 2025 20:04:01 +0200
Message-ID: <87ed19ns6m.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 75217
Cc: 75217 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> 1. Insert the following into a tsx-ts-mode buffer:
>
> function F() {
>   return (
>     <H>Delete</H>
>   );
> }
>
> 2. Install tree-sitter-tsx v0.23.2
> 3. M-x tsx-ts-mode RET
> 3. M-: (goto-char 39) RET  (somewhere in the middle of "Delete")
> 4. M-b
> 5. Observe that point is not at the start of "Delete"

This is fixed in bug#73978.

> Following that, alter <H> to be <H foo="bar"> and hit RET at the start
> of "Delete", at this point you should see:
>
> function F() {
>   return (
>     <H foo="bar">
> 		   Delete</H>
>   );
> }
>
>
> This is unusual.

What indentation in your opinion would be correct?

> In addition, I just noticed one more thing; make a new file containing:
>
> function F() {
>   return (
>     <H>Delete</H>
>   );
> }
>
> Navigate to the start of "Delete", run M-x treesit-explore RET, hit RET
> and tell the explorer to highlight the jsx_text corresponding to
> "Delete", you should see that the region highlighted is not aligned with
> the end of the word "Delete", and, in turn, all subsequent AST nodes are
> mispositioned too.  Typing again fixes this issue.  It seems that the
> buffer needs to be freshly-started for this to happen for some reason.
>
> I do not have any idea why this might be happening.

I tried, but can't reproduce this treesit-explore issue.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 4 Jan 2025 21:07:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 16:07:23 2025
Received: from localhost ([127.0.0.1]:57663 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUBMh-00050W-7X
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 16:07:23 -0500
Received: from mout-p-101.mailbox.org ([80.241.56.151]:60602)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <arsen@HIDDEN>) id 1tUBMf-00050F-1l
 for 75217 <at> debbugs.gnu.org; Sat, 04 Jan 2025 16:07:21 -0500
Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4YQY0w3PYMz9srw;
 Sat,  4 Jan 2025 22:07:12 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; 
 t=1736024832;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=hlwXevBV483kmoGk/PazBmsmUfr5ZfnUO41nGeD3LkQ=;
 b=MtD2XJ/7ULXwqbmIFFzODTjbR4+dLPYz6IMVZPgc20LF700wvEnU6ysOuR6mMmwEc4mzOv
 p5H4H3ansy+IGB6bgp7TBhlwmHCccZPn1UonPxxe58/ujflMUdpM9+TAmGWIeA6ipNU7b5
 9uj/85Bn8kt96hDzgISK0x/bo2wgfqevlQkhhs121CdC6scheSIWIytOKYJaWD+uM4ai8z
 +iE91mvNC3lYqGtihPAttqK6eMsfG137aibsaDXICOZfjAfiLRl3STQHIR0GsAOBTYAB1m
 Bzom6fKcI5/yURpb8IPG4j9ILJpTv6edWOm3JBcKnNtkJR5jR/9X544zeLOjXg==
From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= <arsen@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and
 indentation
In-Reply-To: <86h66ebdqx.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 04 Jan
 2025 21:06:14 +0200")
References: <865xn0tywf.fsf@HIDDEN> <86wmfad9lo.fsf@HIDDEN>
 <138ebb34-adcd-4ea6-99c7-6e966e6f807b@HIDDEN>
 <86h66ed6kc.fsf@HIDDEN> <87v7uulbaw.fsf@HIDDEN>
 <86h66ebdqx.fsf@HIDDEN>
Date: Sat, 04 Jan 2025 22:07:06 +0100
Message-ID: <878qrq9tl1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75217
Cc: dmitry@HIDDEN, casouri@HIDDEN, 75217 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Juri Linkov <juri@HIDDEN>
>> Cc: Dmitry Gutov <dmitry@HIDDEN>,  Yuan Fu <casouri@HIDDEN>,
>>   arsen@HIDDEN,  75217 <at> debbugs.gnu.org
>> Date: Sat, 04 Jan 2025 19:48:55 +0200
>>=20
>> >> >> It seems that, since recently, Emacs has started getting confused =
in
>> >> >> tsx-ts-mode.  For instance, text motions appear to be wrong.
>> >> > This mode is neither part of Emacs nor on GNU ELPA, right?
>> >>=20
>> >> tsx-ts-mode is in lisp/progmodes/typescript-ts-mode.el
>> >
>> > Thanks, and sorry for my temporary blindness.
>> >
>> > Yuan, any comments or suggestions?
>>=20
>> This looks the same as https://debbugs.gnu.org/73978#46
>> where no solution was yet found.
>
> Please merge identical bugs if that is appropriate.

Ah, I didn't think to check for the JSX mode when looking for
duplicates.  This very well could be (partially) the same bug.  I do not
see mention of the weird behavior in the explorer that I noticed,
though.

I'm not confident enough in my knowledge of the modes to be sure the
rest is the same bug, but it could well be.
=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIYEARYKAC4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZ3mi+hAcYXJzZW5AYWFy
c2VuLm1lAAoJEFLClDAeosSTKIABAJWf0ZhJpuhWuocNGM7meGUD47+KyNgmFlw0
qsYehWzZAP4j74Byfydc2zXbpGvlr6a0evryKxiDAN9t9ZF6ravpCg==
=Nttv
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 4 Jan 2025 19:06:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 14:06:25 2025
Received: from localhost ([127.0.0.1]:57396 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tU9Td-0007sy-9r
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 14:06:25 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:32896)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tU9Ta-0007sk-SQ
 for 75217 <at> debbugs.gnu.org; Sat, 04 Jan 2025 14:06:24 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tU9TV-0003bV-FL; Sat, 04 Jan 2025 14:06:17 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=bV0PJjcxIn6heFmsIthSw+2Lw9pSbNKp3yUKhiI10Cc=; b=Qhh4uqo10GJ/
 7ME67roFK06S/Q/d+d94qdwXWhRiYKaKfcttAxB3amOfSDjHseLxPFyWAp9tWhJXutZYHRDdB1Pyc
 qLeGhZJv85/azwMVmMJ2cTVIZWrVPxyCOuzrkKMP6SlvtIF+thYAkvb5EOgT2tTFeAz3rVN5vwIzc
 TpFozpoH8gNL41z7wUWmhq+bate1SawCHPfR9CstAozpnJhH78rlyLJRrK8+RjKHCayB776BW6oLu
 9HifKqdfY8nQ5bHDO4vx5bLhV63Cx4q09+W84wS2PnflYj6a1bjRcdsJjLR/+QYsnsWnqnWMjoA7I
 K/cf1z7T+JNFA6lOW9i8Pw==;
Date: Sat, 04 Jan 2025 21:06:14 +0200
Message-Id: <86h66ebdqx.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-Reply-To: <87v7uulbaw.fsf@HIDDEN> (message from Juri Linkov on
 Sat, 04 Jan 2025 19:48:55 +0200)
Subject: Re: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and
 indentation
References: <865xn0tywf.fsf@HIDDEN> <86wmfad9lo.fsf@HIDDEN>
 <138ebb34-adcd-4ea6-99c7-6e966e6f807b@HIDDEN>
 <86h66ed6kc.fsf@HIDDEN> <87v7uulbaw.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 75217
Cc: dmitry@HIDDEN, casouri@HIDDEN, arsen@HIDDEN, 75217 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> From: Juri Linkov <juri@HIDDEN>
> Cc: Dmitry Gutov <dmitry@HIDDEN>,  Yuan Fu <casouri@HIDDEN>,
>   arsen@HIDDEN,  75217 <at> debbugs.gnu.org
> Date: Sat, 04 Jan 2025 19:48:55 +0200
> 
> >> >> It seems that, since recently, Emacs has started getting confused in
> >> >> tsx-ts-mode.  For instance, text motions appear to be wrong.
> >> > This mode is neither part of Emacs nor on GNU ELPA, right?
> >> 
> >> tsx-ts-mode is in lisp/progmodes/typescript-ts-mode.el
> >
> > Thanks, and sorry for my temporary blindness.
> >
> > Yuan, any comments or suggestions?
> 
> This looks the same as https://debbugs.gnu.org/73978#46
> where no solution was yet found.

Please merge identical bugs if that is appropriate.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 4 Jan 2025 17:53:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 12:53:53 2025
Received: from localhost ([127.0.0.1]:57183 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tU8LQ-0004Xh-2W
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 12:53:52 -0500
Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]:47349)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1tU8LM-0004X3-Ak
 for 75217 <at> debbugs.gnu.org; Sat, 04 Jan 2025 12:53:48 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id 20D6260004;
 Sat,  4 Jan 2025 17:53:38 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and
 indentation
In-Reply-To: <86h66ed6kc.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 04 Jan
 2025 15:58:27 +0200")
Organization: LINKOV.NET
References: <865xn0tywf.fsf@HIDDEN> <86wmfad9lo.fsf@HIDDEN>
 <138ebb34-adcd-4ea6-99c7-6e966e6f807b@HIDDEN>
 <86h66ed6kc.fsf@HIDDEN>
Date: Sat, 04 Jan 2025 19:48:55 +0200
Message-ID: <87v7uulbaw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 75217
Cc: Dmitry Gutov <dmitry@HIDDEN>, Yuan Fu <casouri@HIDDEN>,
 arsen@HIDDEN, 75217 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> >> It seems that, since recently, Emacs has started getting confused in
>> >> tsx-ts-mode.  For instance, text motions appear to be wrong.
>> > This mode is neither part of Emacs nor on GNU ELPA, right?
>> 
>> tsx-ts-mode is in lisp/progmodes/typescript-ts-mode.el
>
> Thanks, and sorry for my temporary blindness.
>
> Yuan, any comments or suggestions?

This looks the same as https://debbugs.gnu.org/73978#46
where no solution was yet found.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 4 Jan 2025 13:58:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 08:58:43 2025
Received: from localhost ([127.0.0.1]:53958 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tU4fr-0000zJ-GH
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 08:58:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:34818)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tU4fm-0000z2-48
 for 75217 <at> debbugs.gnu.org; Sat, 04 Jan 2025 08:58:42 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tU4ff-0003ix-Di; Sat, 04 Jan 2025 08:58:31 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=4iGO3Hj7Rvwdr5pxkha2zgpizWmsyNCRndk/pX+X/fY=; b=NtHbaVfZK1Ga
 jKIUxIAslSMbGnXN2fLeLPds2QCXA7ajryQf+zcMcqt7rNLAhmtkdNCN+W0xi1bPL3rLCYl/u8e+f
 +SepH81ApR55EuVlc9sfy+EEBVvtI2t90Y1LRx7QqayzAsVHxDtDpVRrkueQh5dOpIP4P6VD6Ww5A
 HowqJHBHp3Z6X2JMHNAnmVG3c5syAbqTRxXMD+36NsFyKOW8OLhOISl68usiElDcrqj1dsLdwsmSB
 X1Ur9cLb3qRxwpoeENOX32V4W8BYaw3YlIrbZXc6dtEcJE+6EZbF2OL5hHiqmwLo4VLEGRAIv6wTJ
 ALi1L/kfnaPa/CJr8TyCqg==;
Date: Sat, 04 Jan 2025 15:58:27 +0200
Message-Id: <86h66ed6kc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>, Yuan Fu <casouri@HIDDEN>
In-Reply-To: <138ebb34-adcd-4ea6-99c7-6e966e6f807b@HIDDEN> (message from
 Dmitry Gutov on Sat, 4 Jan 2025 14:58:14 +0200)
Subject: Re: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and
 indentation
References: <865xn0tywf.fsf@HIDDEN> <86wmfad9lo.fsf@HIDDEN>
 <138ebb34-adcd-4ea6-99c7-6e966e6f807b@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 75217
Cc: arsen@HIDDEN, 75217 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> Date: Sat, 4 Jan 2025 14:58:14 +0200
> Cc: 75217 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 04/01/2025 14:52, Eli Zaretskii wrote:
> >> It seems that, since recently, Emacs has started getting confused in
> >> tsx-ts-mode.  For instance, text motions appear to be wrong.
> > This mode is neither part of Emacs nor on GNU ELPA, right?
> 
> tsx-ts-mode is in lisp/progmodes/typescript-ts-mode.el

Thanks, and sorry for my temporary blindness.

Yuan, any comments or suggestions?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 4 Jan 2025 12:58:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 07:58:27 2025
Received: from localhost ([127.0.0.1]:53834 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tU3jV-0006eX-SL
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 07:58:26 -0500
Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]:50311)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1tU3jU-0006eK-E1
 for 75217 <at> debbugs.gnu.org; Sat, 04 Jan 2025 07:58:25 -0500
Received: from phl-compute-03.internal (phl-compute-03.phl.internal
 [10.202.2.43])
 by mailfhigh.phl.internal (Postfix) with ESMTP id 264EA1140191;
 Sat,  4 Jan 2025 07:58:19 -0500 (EST)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Sat, 04 Jan 2025 07:58:19 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm1; t=1735995499;
 x=1736081899; bh=TsWqBdk5ozAfJ9uKfabTBiQXTNOXgsOSlfeJH6nVya4=; b=
 ve4f6sXTgY3jZGWw9yFedYpGYqAx6lad10ThhXeQb+y6sYYQvbS65zU0W0nqpuYu
 BRvAoIXrs38QLVa40g01veDOi+TDEA3SBWT9+aEc1Wi8lz/bAkPrjq/cz8tQT06q
 qOlRwVW1DWygg2VnO1M0s9xlyrqxoQ7mDtTKZIW1BixHUXstB0nUW4cffx/ce26A
 TDhdwleJp4rMgwuSdGv3FCgWGKuRpvmP8Hk5c9QVVeYTD43axf9eXMO6/sdE9+e4
 bOQoBgGD7rZCVuuBy09zR6CXRzI257GFduYaQrGARbcJJOp6U/tdbshtUomsZgP4
 QIXEj3TSQeHPPkr4QavFgw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1735995499; x=
 1736081899; bh=TsWqBdk5ozAfJ9uKfabTBiQXTNOXgsOSlfeJH6nVya4=; b=Q
 FnlsCi649neMQ3/PvR3DYYDnyYPeMdp31msda3N6mI8eP++tVRW9YMdtpx8EV5gI
 s2ERS7BZn+gkuRI8d8RpQd3t1bLFFh6htMGUhkuNn+n0rmqmu2o19LbTqprnRMqG
 YqWrf7DV/jmkqGjKrBNqkUwheFyiJVo4Nh6Md4yMBT39Ejt2/1u+co7lxK/fpvsl
 6ctUyq866oFwhimncTc5p4CbgEsfS0LdPI/N/QjgrTp4xS3ELDW0xIegH7vS3T20
 rZ7y+kupZIwICdO8Sjwo+O70Iz8Cl/LxpTC1kznKxGaWF6mjQi4K8XcpW3eC76vz
 8uGQk9mfh0pAJbcVqAmBA==
X-ME-Sender: <xms:ajB5ZytJEt1WHqNOZ-uEhwuSjPFxIq8VVVLpliYlfqmlchQoOWP39Q>
 <xme:ajB5Z3flH5TqmW0y0GPvrg2-7BXFrFlqHnGkg1PsaxtCdN_h-8n7XVIxqMjWL55Xx
 VV-MxBVa-4btHaaDI8>
X-ME-Received: <xmr:ajB5Z9z10WyLTv51WFREMG6k0n3IuUms1dPPPoLJpXvxHIDzDUktcsX5KK_u0tPZpKJL>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudefiedggeeiucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej
 necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug
 gvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieekueef
 tddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe
 hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho
 peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh
 dprhgtphhtthhopegrrhhsvghnsegrrghrshgvnhdrmhgvpdhrtghpthhtohepjeehvddu
 jeesuggvsggsuhhgshdrghhnuhdrohhrgh
X-ME-Proxy: <xmx:ajB5Z9PC_KuBuuyQVRgIuFzb84C2sCbx55Qyc6JW_k4ae09F17Rtyg>
 <xmx:ajB5Zy9KcCILrmcXfR5JasTqQUieUvGRuWyhP-K-0snHuci3IHY3WA>
 <xmx:ajB5Z1VssDIKAO-sXUfZS1eotMZaAtjVXWbMcFxlzg4L5O8Gvifuew>
 <xmx:ajB5Z7cPbB3wLMUrKs5SiD1QwwQdy3mrghZgzPj1T-rwnFjzqqkRYQ>
 <xmx:azB5Z5Yn-HSucl8HavcapYQIVACdA2Ur6muR2bhbaWyP-SJEy85qMfi7>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 4 Jan 2025 07:58:17 -0500 (EST)
Message-ID: <138ebb34-adcd-4ea6-99c7-6e966e6f807b@HIDDEN>
Date: Sat, 4 Jan 2025 14:58:14 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#75217: 31.0.50; tsx-ts-mode has wonky text motions and
 indentation
To: Eli Zaretskii <eliz@HIDDEN>, =?UTF-8?Q?Arsen_Arsenovi=C4=87?=
 <arsen@HIDDEN>
References: <865xn0tywf.fsf@HIDDEN> <86wmfad9lo.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <86wmfad9lo.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75217
Cc: 75217 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 04/01/2025 14:52, Eli Zaretskii wrote:
>> It seems that, since recently, Emacs has started getting confused in
>> tsx-ts-mode.  For instance, text motions appear to be wrong.
> This mode is neither part of Emacs nor on GNU ELPA, right?

tsx-ts-mode is in lisp/progmodes/typescript-ts-mode.el




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.

Message received at 75217 <at> debbugs.gnu.org:


Received: (at 75217) by debbugs.gnu.org; 4 Jan 2025 12:53:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 04 07:53:15 2025
Received: from localhost ([127.0.0.1]:53826 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tU3eU-0006P2-Vo
	for submit <at> debbugs.gnu.org; Sat, 04 Jan 2025 07:53:15 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:60942)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tU3eQ-0006Ok-Se
 for 75217 <at> debbugs.gnu.org; Sat, 04 Jan 2025 07:53:12 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tU3eJ-0000Ha-Mn; Sat, 04 Jan 2025 07:53:04 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=D/PxaWcvrHVbaWLzWVxJF2pJULivSKMEF5dDLD43Fzk=; b=bi1ZX01a6zu4A5eGL4S8
 uzADXA89hOJAAu6nEddTgK2dAZuDpX6/UZ2HNeWYCbH7uNAIETO9zwWySNvAQgavlZvRq99sbfhQW
 OYDQ5t7RLi/nn68HtzR8v5TZ89ZVScUUaAGDgsd1GPR1ib3p8bQ361wNaDWrqUe7f1jWH3cQqf7AZ
 VWHLw8/1vPv7QXsz5S5+qm0JxQq/Fd+1D1WGgs2P7OZyl8NhLevb5RpQUMcJQa2vgElvY06OL6weK
 brALxq0nywZrHmAETHUWS3V6iktEgt+IqtSTrl9etXH5AjBI3/ColdKpUaPlzLNJ2+TONEmNn5GnF
 beY/a805NUZlZw==;
Date: Sat, 04 Jan 2025 14:52:51 +0200
Message-Id: <86wmfad9lo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Arsen =?utf-8?Q?Arsenovi=C4=87?= <arsen@HIDDEN>
In-Reply-To: <865xn0tywf.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#75217: 31.0.50;
 tsx-ts-mode has wonky text motions and indentation
References: <865xn0tywf.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75217
Cc: 75217 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 31 Dec 2024 02:38:24 +0100
> From:  Arsen Arsenović via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> It seems that, since recently, Emacs has started getting confused in
> tsx-ts-mode.  For instance, text motions appear to be wrong.

This mode is neither part of Emacs nor on GNU ELPA, right?

If so, could you please report it to the developers of this mode
first?  If they say this is due to some issue with how Emacs core
works, and provide evidence for that, then we can revisit the issue
here.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Dec 2024 01:38:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 30 20:38:48 2024
Received: from localhost ([127.0.0.1]:60585 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tSRDb-0003XW-MU
	for submit <at> debbugs.gnu.org; Mon, 30 Dec 2024 20:38:48 -0500
Received: from lists.gnu.org ([209.51.188.17]:49904)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arsen@HIDDEN>) id 1tSRDY-0003XM-TU
 for submit <at> debbugs.gnu.org; Mon, 30 Dec 2024 20:38:46 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arsen@HIDDEN>) id 1tSRDS-0002gj-J1
 for bug-gnu-emacs@HIDDEN; Mon, 30 Dec 2024 20:38:39 -0500
Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <arsen@HIDDEN>) id 1tSRDQ-0001qR-1T
 for bug-gnu-emacs@HIDDEN; Mon, 30 Dec 2024 20:38:38 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4YMbGB1HYSz9snW
 for <bug-gnu-emacs@HIDDEN>; Tue, 31 Dec 2024 02:38:26 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; 
 t=1735609106;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=PYxMS9o7RtzrMufmEbL1xFRDk6U6SG27ZYFLzXyltqU=;
 b=1f5AQDOwWbuknIppjMRsQ85z+ZB2FWS0NcLicgXORaSLeCXdpCa5oTblrcuD2hFnh0Q/HB
 m6RU8FXIKuNGnVzO8LSnKKsv3KquQLeMjujKZhkNsvTKphmVwnOXlpSI5ek959Sp5KxBCF
 d0BWd7BfTb4E6qO8ugJ9xnccgbfGED7XQaGrYEJEVdXN6zlUNvyOCZ7Zdt1Jq43AEoR8SA
 kLzr+B6DTUuvlp+lB7Y8jZ6y5Ob5B2ppXFWhO6zmc3jOEK8hN9Q3aC7Sm5y8KfgWSt4r2i
 zIJC9SB1hLPvyswWvBBY9tXy+7nFJMNIihoJf4d6Fp+JN3VnmHBbGO+Ye+BWaA==
From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= <arsen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; tsx-ts-mode has wonky text motions and indentation
X-Debbugs-Cc: 
Date: Tue, 31 Dec 2024 02:38:24 +0100
Message-ID: <865xn0tywf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=2001:67c:2050:0:465::101;
 envelope-from=arsen@HIDDEN; helo=mout-p-101.mailbox.org
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi!

It seems that, since recently, Emacs has started getting confused in
tsx-ts-mode.  For instance, text motions appear to be wrong.

Reproduction steps:

1. Insert the following into a tsx-ts-mode buffer:
=2D-8<---------------cut here---------------start------------->8---
function F() {
  return (
    <H>Delete</H>
  );
}
=2D-8<---------------cut here---------------end--------------->8---
2. Install tree-sitter-tsx v0.23.2
3. M-x tsx-ts-mode RET
3. M-: (goto-char 39) RET  (somewhere in the middle of "Delete")
4. M-b
5. Observe that point is not at the start of "Delete"

Following that, alter <H> to be <H foo=3D"bar"> and hit RET at the start
of "Delete", at this point you should see:

=2D-8<---------------cut here---------------start------------->8---
function F() {
  return (
    <H foo=3D"bar">
		   Delete</H>
  );
}
=2D-8<---------------cut here---------------end--------------->8---

This is unusual.

In addition, I just noticed one more thing; make a new file containing:

=2D-8<---------------cut here---------------start------------->8---
function F() {
  return (
    <H>Delete</H>
  );
}
=2D-8<---------------cut here---------------end--------------->8---

Navigate to the start of "Delete", run M-x treesit-explore RET, hit RET
and tell the explorer to highlight the jsx_text corresponding to
"Delete", you should see that the region highlighted is not aligned with
the end of the word "Delete", and, in turn, all subsequent AST nodes are
mispositioned too.  Typing again fixes this issue.  It seems that the
buffer needs to be freshly-started for this to happen for some reason.

I do not have any idea why this might be happening.

Thanks in advance, and happy holidays!

In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.18.2, Xaw3d scroll bars) of 2024-12-31 built on localhost
Repository revision: 2f1052d9b0de551dc3a463ed54e21c63517497ab
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12401004
System Description: Gentoo Linux

Configured using:
 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu
 --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man
 --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc
 --localstatedir=3D/var/lib --datarootdir=3D/usr/share
 --disable-silent-rules --docdir=3D/usr/share/doc/emacs-31.0.9999
 --htmldir=3D/usr/share/doc/emacs-31.0.9999/html --libdir=3D/usr/lib64
 --program-suffix=3D-emacs-31-vcs --includedir=3D/usr/include/emacs-31-vcs
 --infodir=3D/usr/share/info/emacs-31-vcs --localstatedir=3D/var
 --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp
 --without-compress-install --without-hesiod --without-pop
 --with-file-notification=3Dinotify --with-pdumper --enable-acl
 --enable-xattr --with-dbus --with-modules --with-gameuser=3D:gamestat
 --with-libgmp --with-gpm --with-native-compilation=3Daot
 --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2
 --with-mailutils --without-selinux --with-sqlite3 --with-gnutls
 --with-libsystemd --with-threads --with-tree-sitter --without-wide-int
 --with-sound=3Dalsa --with-zlib --with-x --without-pgtk --without-ns
 --without-gconf --without-gsettings --with-toolkit-scroll-bars
 --with-xpm --with-xft --with-cairo --with-harfbuzz --with-libotf
 --with-m17n-flt --with-x-toolkit=3Dlucid --with-xaw3d --with-gif
 --with-jpeg --with-png --with-rsvg --with-tiff --with-webp
 --without-imagemagick --with-dumping=3Dpdumper 'CFLAGS=3D-freport-bug -O2
 -ggdb3 -pipe -fdiagnostics-color=3Dalways -march=3Dx86-64-v2 -flto
 -Werror=3Dodr -Werror=3Dlto-type-mismatch -Werror=3Dstrict-aliasing
 -fuse-ld=3Dmold -Wl,--undefined-version -fno-fast-math -ffp-contract=3Doff'
 CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
 -O2 -Wl,-O3 -pipe -fdiagnostics-color=3Dalways
 -Wl,--defsym=3D__gentoo_check_ldflags__=3D0 -Wl,-z,pack-relative-relocs
 -Wl,--build-id -flto -Werror=3Dodr -Werror=3Dlto-type-mismatch
 -Werror=3Dstrict-aliasing -fuse-ld=3Dmold -Wl,--undefined-version''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG LCMS2
LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB

Important settings:
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: TypeScript[TSX]

Minor modes in effect:
  global-jinx-mode: t
  jinx-mode: t
  server-mode: t
  display-line-numbers-mode: t
  ruler-mode: t
  indent-bars--ts-mode: t
  indent-bars-mode: t
  diff-hl-flydiff-mode: t
  diff-hl-mode: t
  hl-todo-mode: t
  savehist-mode: t
  save-place-mode: t
  global-hl-line-mode: t
  mu4e-modeline-mode: t
  ws-butler-global-mode: t
  ws-butler-mode: t
  corfu-popupinfo-mode: t
  global-corfu-mode: t
  corfu-mode: t
  marginalia-mode: t
  vertico-mouse-mode: t
  vertico-mode: t
  org-roam-db-autosync-mode: t
  which-key-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  global-display-fill-column-indicator-mode: t
  display-fill-column-indicator-mode: t
  which-function-mode: t
  electric-pair-mode: t
  global-whitespace-mode: t
  whitespace-mode: t
  repeat-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tab-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/usr/share/emacs/site-lisp/emacs-eat/eat hides /usr/share/emacs/site-lisp/e=
macs-eat/term/eat
/usr/share/emacs/site-lisp/transient/transient hides /usr/share/emacs/31.0.=
50/lisp/transient
/usr/share/emacs/site-lisp/compat/compat hides /usr/share/emacs/31.0.50/lis=
p/emacs-lisp/compat

Features:
(shadow sort mail-extr emacsbug ebuild-mode skeleton typescript-ts-mode
js c-ts-common cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs tramp-archive tramp-gvfs
vertico-directory jinx server paredit display-line-numbers ruler-mode
indent-bars-ts indent-bars cus-edit cus-start face-remap diff-hl-flydiff
diff-hl log-view log-edit add-log pcvs-util vc-dir ewoc vc vc-dispatcher
diff-mode track-changes hl-todo savehist saveplace tramp-cache
time-stamp tramp-sh tramp trampver tramp-integration files-x
tramp-message tramp-compat shell tramp-loaddefs desktop frameset mu4e
mu4e-org mu4e-notification notifications mu4e-main smtpmail mu4e-view
mu4e-mime-parts mu4e-headers mu4e-thread mu4e-actions mu4e-compose
mu4e-draft gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime
gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud
nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec
gnus-int gnus-range gnus-win gnus nnheader range wid-edit mu4e-search
mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message shr pixel-fill kinsoku
url-file browse-url url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util flow-fill
mule-util hl-line mu4e-contacts mu4e-update mu4e-folders mu4e-context
mu4e-query-items mu4e-server mu4e-modeline mu4e-vars mu4e-helpers
mu4e-config mu4e-window bookmark pp ido message sendmail mailcap
yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg
rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev
mail-utils gmm-utils mailheader mu4e-obsolete auth-source-pass ws-butler
modus-vivendi-tinted-theme modus-themes kind-icon svg-lib svg dom
corfu-popupinfo corfu orderless marginalia vertico-mouse vertico
flycheck lisp-mnt emacsql-sqlite-builtin sqlite comp comp-cstr warnings
org-roam-migrate org-roam-log org-roam-mode org-roam-capture org-roam-id
org-roam-node org-roam-db org-roam-utils org-roam-compat org-roam
org-capture org-element org-persist xdg avl-tree generator org-attach
org-id org-refile org-element-ast inline org-clock dbus comp-run
comp-common xml org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src sh-script smie treesit executable ob-comint org-pcomplete
pcomplete org-list org-footnote org-faces org-entities time-date
org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol
org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu
calendar cal-loaddefs org-compat org-macs emacsql-sqlite emacsql
emacsql-compiler magit-section format-spec cursor-sensor compat dash
cus-load which-key ace-window avy undo-tree diff queue
display-fill-column-indicator which-func imenu elec-pair whitespace
markdown-mode edit-indirect rx color url-parse auth-source eieio
eieio-core password-cache json map url-vars thingatpt noutline outline
icons repeat edmacro kmacro byte-opt cl-macs gv cl-extra help-mode
cl-seq use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key easy-mmode
use-package-core bytecomp byte-compile site-gentoo hs-lint compile
text-property-search comint subr-x ansi-osc ansi-color ring
preview-latex mmm-auto mmm-vars cl-loaddefs cl-lib mmm-utils mmm-compat
ess-autoloads tex-site rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting font-render-setting cairo x-toolkit xinput2 x multi-tty
move-toolbar make-network-process tty-child-frames native-compile emacs)

Memory information:
((conses 16 544069 703495) (symbols 48 38898 315) (strings 32 154233 56412)
 (string-bytes 1 5655043) (vectors 16 61204) (vector-slots 8 756127 350607)

=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZ3NLEF8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF
MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy
c2VuLm1lAAoJEFLClDAeosST8iMBAKYi4/rwdz/kz1dTXvcNc5ux2VDeaLy0QiPi
xFF5nm1hAQCSnMLRsLs9nAczEDAn4O7RsCLOI00yja1M8aLayo7nBA==
=1UJq
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Arsen Arsenović <arsen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75217; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

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