From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#73978: 31.0.50; Text syntax applied on too many things in tsx-ts-mode Date: Wed, 25 Dec 2024 09:40:48 +0200 Organization: LINKOV.NET Message-ID: <87msgk43cv.fsf@mail.linkov.net> References: <1A3DAA8F-F00A-4984-AC0F-E62F021A690B@gmail.com> <87r05xmr24.fsf@mail.linkov.net> <87jzbpmqhm.fsf@mail.linkov.net> <9C416A93-5E86-4FE5-ADFB-092365169F09@gmail.com> <87ed1xkn7h.fsf@mail.linkov.net> <5626DFE7-CA89-4A39-A896-99D8814FD6CD@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29542"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Dmitry Gutov , Theodor Thornhill , 73978@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 25 09:11:19 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tQMUB-0007ZI-C3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Dec 2024 09:11:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQMTx-0008LV-Vg; Wed, 25 Dec 2024 03:11:05 -0500 Original-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 ) id 1tQMTv-0008LB-Sj for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 03:11:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQMTu-00035u-Pq for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 03:11:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=wnwkF6yMCjRgkC+nj1GQc9qG+NtIGrLHSzgQXXAZk1c=; b=fpSx55H5hQZnuz+AxgDXp8zeNnTiLD/RUsDThYy5JEoewcAD2IdLOm4fNeAgSx3US1A/6yXc/e6xKj4U4ixzG+zv5tSdSPllRc8LZTGRQd/HJgDFRtUEMncf0xbWUZw7kvPzNqo+J12GJk/0OANLBRgdmMfisFitPyYP+DunPGsk9FEY36lNsC7FxXDVOCboErKlAqSrHEVDBgX6WS6rl2EMHg8xyssIVKEHgLEM/WL51kH/ViMdJhHKZeGqlj2H2REa2elF4tBcbvE5/5x7lK3/KUieUMnAw/N3/+k4jVHsX+fXcw9Ue38VhsE/ctjA4FAioYjjPqW1mMzfBvqinw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQMTu-0005qM-Ao for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 03:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Dec 2024 08:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73978 X-GNU-PR-Package: emacs Original-Received: via spool by 73978-submit@debbugs.gnu.org id=B73978.173511424922418 (code B ref 73978); Wed, 25 Dec 2024 08:11:02 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 25 Dec 2024 08:10:49 +0000 Original-Received: from localhost ([127.0.0.1]:36043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQMTh-0005pV-3C for submit@debbugs.gnu.org; Wed, 25 Dec 2024 03:10:49 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQMTe-0005p8-Mt for 73978@debbugs.gnu.org; Wed, 25 Dec 2024 03:10:47 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 3A94460002; Wed, 25 Dec 2024 08:10:37 +0000 (UTC) In-Reply-To: <5626DFE7-CA89-4A39-A896-99D8814FD6CD@gmail.com> (Yuan Fu's message of "Tue, 24 Dec 2024 12:57:15 -0800") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297716 Archived-At: >> ReactDOM.render( >>
>>

Hello, Welcome to React and TypeScript

>>
, >> document.getElementById("root") >> ); >> >> 1. move point to the beginning of

>> 2. type C-M-b >> 3. point incorrectly moves to inside
>> >> However, this the above patch, point doesn't move >> that is correct. >> >> Another test case: >> >> 1. move point to the beginning of the word "Welcome" >> 2. type C-M-b >> 3. point incorrectly moves to the letter "e" instead of correct "H" >> >> 4. type C-M-f a few times until the end of text >> 5. point stops at the letter "t" instead of moving after the last letter >> >> All these cases work correctly with the patch above. > > I understand the problem you want to solve, but the patch above will > bring back the bug I was trying to fix in the first place. The patch just demonstrated one of possible ways to solve the problem. > And I still don’t understand the intention of your patch. Maybe > I missed something. Am I correct that you want to apply string syntax > on the tags, eg,
, ,
? I don't need to apply string syntax on the tags. I just found that currently C-M-f navigation was broken. Maybe there are other ways to fix it?