From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu 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 00:33:10 -0800 Message-ID: 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> <87msgk43cv.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Theodor Thornhill , 73978@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 25 09:35:15 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 1tQMrL-000A7x-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Dec 2024 09:35:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQMrA-0001ap-GU; Wed, 25 Dec 2024 03:35:04 -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 1tQMr8-0001YK-Go for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 03:35:02 -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 1tQMr8-0003fS-7P for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 03:35:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=Cj26pAWz3cIliED8adZZmBE6qoclNArO8Yh8sYli7uo=; b=Ir+8rfeNuifbpk9bMQy+/DPQA8tYvo6yCPTFrP8J9xNocsrp4cSVoMmvFaGtuSIlNQPSOYE9siMDh+QHCAp/DudsKRELwCJwUNPek4/1vUNNpd1r0YkbhgaD4EzFnJhNdLs/Z6VkpLXYGuBP3ALGNMKj7KZR4tSW4GuOw2Hy/3EBxnNn13q0GNfHqaNRplxQrBE7mKuTQxjbfne2FJqV66B03Jps90j3KYxDOv+GZK+9rRy1jDexyZBK5V1Q4b6cq31N2mnGp0zOZSLBLACNMsps1PN/Fpmk4jxZU1yUA52k849QuwqnhgDL6gVHURy35rnQQlTtTaYp58TX7JAveQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQMr8-00075Q-0t for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 03:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Dec 2024 08:35:01 +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.173511567027177 (code B ref 73978); Wed, 25 Dec 2024 08:35:01 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 25 Dec 2024 08:34:30 +0000 Original-Received: from localhost ([127.0.0.1]:36123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQMqb-00074G-S6 for submit@debbugs.gnu.org; Wed, 25 Dec 2024 03:34:30 -0500 Original-Received: from mail-pl1-f178.google.com ([209.85.214.178]:50197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQMqZ-00073z-Sv for 73978@debbugs.gnu.org; Wed, 25 Dec 2024 03:34:28 -0500 Original-Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-216426b0865so60459045ad.0 for <73978@debbugs.gnu.org>; Wed, 25 Dec 2024 00:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735115602; x=1735720402; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Cj26pAWz3cIliED8adZZmBE6qoclNArO8Yh8sYli7uo=; b=MIEu4unAHef/lfvMsmffoCuOfvhMJBNJMFsV/tLENAqOv7XGupGBBmKhUj+h76w9e0 RwXDVgDHpTHIrv3ynlv5enJeeXkuH9vxSO2XhqcpbtzRVBIw5Pyqo1cvvc74kJ1hdzx9 lqvbr50fBfbng7oKZIZVEFbf9OsCjDadULBZGyd8vd1nAAwv9GOJvyagYbz0sHoBEOpZ EYI2ObU5tk/soQBYgb4kFp5SOXB7SkutchurhLKA/668GNaM3zrckSWaKAN8lYiK3reK 3y0zcs4ukb8/wJlrVZbMRqhEwLSK2jRC0RuE2tS9+vBnPN0v4EMWJr6aBNPtg81FPUQX PHJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735115602; x=1735720402; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cj26pAWz3cIliED8adZZmBE6qoclNArO8Yh8sYli7uo=; b=njNvH7P5J4GbfrAInozaFrfDa3XGu/3lKGYTiyITX1xPuIEPfSFZpLz6ax4jffleRm VBpeFVQMxVhXQbJVUaWczSlFvumL4dIk1r58ZgvgUX5ON6VGMh1PaCh5srpy7fUkFUWM bSaFUCH7pogOpkhMM3GI0cJuiTTqeKDwSSkVXSZInl6dzXW/6zc74ppXO8viXqhzaXLb FODcIPC5o5tjC5Br/T9IugWLmprbJwa9JosMSz0z+xqrJ2F24x9BeSg+2JhR60aiJROo P45ISHNPpKpsemEsQfZpCvOVp35FzXS0wj4T14EYrcVw4XT0fUwqDq5taKAqe2rfrVek Z/oA== X-Forwarded-Encrypted: i=1; AJvYcCVNarmtOlEqrq8jQ1CapBfzlcpEPIBpQf840R9ktyXgchuKpaG+zL9Wl4FEPXUzFXzr3VEdnw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx54+MHBRuIiBCesNNWeavSwPADLbgSYB/BPNhFfWgPsaQ1gW2F LCRrUUVKfvpH1NSI/ACHigWig+yiCiXO/KTmlYhHkKGjIetXppxY X-Gm-Gg: ASbGncvmDxYUR9tytkdNBBG3k+35wQ+gQ8zknAOZFIONlJ7tq3GOX07thK5WY0Bz2j/ jVqZytKLP6gXYfhfvpN1z/TxN+EKgIXnGL6e76Zf2enxK3cAkg+VfhVswta/0BTg2p/VRgjJcXo L+bKZ9emrI9j2Ms21QK3O1WNFg+XXA1qYiwQewcP3c7J3YNQMhn4/alQabDsUja9Fg9H/YhyKF/ W7e1aD4FQXkxjEK4ryGWZVRlCT2jY68mwPHD40lLBO0L0rGX2s6+rHlZKZ8xTgIFj15re+nLbp5 u18= X-Google-Smtp-Source: AGHT+IEXCPCfGC5ifJPgdllnG00DJekwIv42wpBC+1efv9GHhTRci+f/47jDwacH0NtFUQVcQGZUAA== X-Received: by 2002:a17:902:ce86:b0:216:2f7f:ff69 with SMTP id d9443c01a7336-219e6e894c8mr219471765ad.5.1735115601807; Wed, 25 Dec 2024 00:33:21 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:e179:285e:283:33ae]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca02a97sm100538345ad.275.2024.12.25.00.33.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Dec 2024 00:33:21 -0800 (PST) In-Reply-To: <87msgk43cv.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3776.700.51) 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:297722 Archived-At: > On Dec 24, 2024, at 11:40=E2=80=AFPM, Juri Linkov = wrote: >=20 >>> ReactDOM.render( >>>
>>>

Hello, Welcome to React and TypeScript

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

>>> 2. type C-M-b >>> 3. point incorrectly moves to inside
>>>=20 >>> However, this the above patch, point doesn't move >>> that is correct. >>>=20 >>> Another test case: >>>=20 >>> 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" >>>=20 >>> 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 >>>=20 >>> All these cases work correctly with the patch above. >>=20 >> 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. >=20 > The patch just demonstrated one of possible ways to solve the problem. >=20 >> And I still don=E2=80=99t understand the intention of your patch. = Maybe >> I missed something. Am I correct that you want to apply string = syntax >> on the tags, eg,
, ,
? >=20 > 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? Then let=E2=80=99s look for other ways to solve the problem you = demonstrated. Dmitry, would there be any negative effects if we apply = the whitespace syntax on all the text (rather than string syntax)? Ah, I = guess skip-syntax wouldn=E2=80=99t work right. Is there another way to = tell syntax-ppss to skip a chunk of text when scanning? Yuan=