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: Sat, 4 Jan 2025 11:58:02 -0800 Message-ID: <077C5CF3-F487-4A88-9CC9-E7B329CB7C5B@gmail.com> 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> <28f6a7a3-8b09-41f9-8908-10a82be17aaa@gutov.dev> 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="23827"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Theodor Thornhill , 73978@debbugs.gnu.org, Juri Linkov To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 20:59:13 2025 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 1tUAIj-00063q-11 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 20:59:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUAIb-0004gt-PJ; Sat, 04 Jan 2025 14:59: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 1tUAIZ-0004gO-8k for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:59:03 -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 1tUAIY-0008Pb-OB for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:59:03 -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=yZx95pVZqLzS69Jf0YJrx9s8ZMv8AYbuOMp3aTZ20nE=; b=GyOYYF5X0EnV0OF/J2UnpWkeOjyNCxfnwaJF04rfIu2+l2TllldmDxxZgMWH/McjMF2Dwn1SKAB+AtIS+25gQ9GYVvYLYDJpqelP0jKl62/c9W6nCRNHZUdQT9fTPB3N2qsaxg/YiWJLYL2fx3pkh4X/sN/dOp04BGG2dNBwqv/Z3ASErW9EjolrEVLVt4f6nLwAxGE7v6pRab+ZbCdwt1EjMPL6VucxXVUBmVjl/dcBRmwuMFwfPek4vNZ3DKa/i/3QczWhbL5nX17V5yXqkxSD7K6BOaWCWumyMv7VADGN7aESEEQ1p2EpcVYbuoossDodf4xDEg/axjepJUcuUQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUAIY-0001s2-8Y for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:59: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: Sat, 04 Jan 2025 19:59: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.17360206977121 (code B ref 73978); Sat, 04 Jan 2025 19:59:02 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 4 Jan 2025 19:58:17 +0000 Original-Received: from localhost ([127.0.0.1]:57503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUAHp-0001qn-BA for submit@debbugs.gnu.org; Sat, 04 Jan 2025 14:58:17 -0500 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:54591) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUAHn-0001qe-A0 for 73978@debbugs.gnu.org; Sat, 04 Jan 2025 14:58:16 -0500 Original-Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-21670dce0a7so114179685ad.1 for <73978@debbugs.gnu.org>; Sat, 04 Jan 2025 11:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736020694; x=1736625494; 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=yZx95pVZqLzS69Jf0YJrx9s8ZMv8AYbuOMp3aTZ20nE=; b=lA14y411fhxeIo6G/l+YhVY0YzkKwG0plWGS7n3Uoy67FAmnQhCo/9FYa8FSMreAFH MMQt6Y9FiiDHDLKZ4PbwiKWbXb3VQOuGwBcQrrQXSQivbS7xugsb+ysxQtVYQdMV1ySd ABsH28F2NCDf6GffeZnoe97LEdO2nbwS8AXykwYqMsWaaPBjMP6I1Y7RfalUIKdn21qF 4P3MkXZPdae15AGmJAAwesU1Ey/ON2lmBH7hRg5N5QVvh10WVPXNRfW7nz9i3SUd7m3z HLgwfJRvsG58bCD1fG0W94yDaYcQMxT86OuynZHF3GnoHGHZcTphHqzWQF/2cmDA6BRn 2CCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736020694; x=1736625494; 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=yZx95pVZqLzS69Jf0YJrx9s8ZMv8AYbuOMp3aTZ20nE=; b=wsaO8ULbEcTbufJ+9f1FQCJAAxsabwTe0AFZt4VKpXnYgtc8PxRSXBvdcMZh2UwJnI FjBxrJgOxgomOnmF9+2Osu6uR7sKmU7/f4u4sSvVR9/8haGjS4OKB4odHbp+2U2MW5Pc Rela6+HuqapeMvvckL8sFe6vW9RQa7gWR0ZR4PJJZGF2hYZdyKqmP8SZqJWePV8+3SnM byHZ2ajv46SxTjZi5qngJOODPSLI4TttQXLAl8+9yvtnX7K6WnldqDj34xdx+s8WFntY w6rGCcYQZ6cvuB0kJ3kMUlD2D4DLF4dtuDh/f1yg/pUPf6vw1K06hvtYEbL5fKYN4ei/ uxag== X-Forwarded-Encrypted: i=1; AJvYcCVut9EynlXAN6SuJiR/6LkD7MjE1NiHrg3dJK0nfjViyhN2yNdeNh7T4cnF7NNCKxOtbCQasg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yyfib3GwwTVb1F7Kv0n/a2kJOxLztthBDS5qOTC/k0Y+rB0b39f PnZ6mCe4ckPaCIosK8XGT8PYh3rlnGQP1G1CvEU4WMQ47/3oQsy9 X-Gm-Gg: ASbGncuPb3U4Ng3SPYzLB+9GJeB3sxkML8025n/Ixr7NHjpytUs/bmeAMjBWNywWC50 r8XYNFFXddBSRv4AoBqoubz9YxNIr/ihp6wFt9ndTj4LFP4eQYYz6axHNNY/mF4O6+Ik2JS1rdL PWi/sDhy7vmTIcwQJ597IvqA4bvYu6tSE0giM1CgxVVn1H+RUlTvbG3pWDMRAMtQD2q+M+3IW1N puZQPi9ZOAqUz6mG0nTjx1Pn+nIJ0syCPUBdR8Fr5GhAMP7E2HOQmXj6cCjHNBj/SMcOGSYzIwr TQmI X-Google-Smtp-Source: AGHT+IEDKdIdeHXvYsJmA+RMPQ389/5yD36fq8bUnUp+nE4wHj4SB23DExUnHzkdaWkfD5Y1SMvcwg== X-Received: by 2002:a05:6a20:8427:b0:1e0:ca95:3cb2 with SMTP id adf61e73a8af0-1e5e0458eb9mr94009569637.8.1736020694098; Sat, 04 Jan 2025 11:58:14 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:85eb:71bd:58ac:56a8]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-842abd593bcsm26150860a12.16.2025.01.04.11.58.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jan 2025 11:58:13 -0800 (PST) In-Reply-To: <28f6a7a3-8b09-41f9-8908-10a82be17aaa@gutov.dev> 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:298463 Archived-At: > On Dec 25, 2024, at 9:37=E2=80=AFPM, Dmitry Gutov = wrote: >=20 > On 25/12/2024 10:33, Yuan Fu wrote: >>> 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,
, ,
? >>> 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? >=20 > Maybe not. >=20 > But I guess tsx-ts--syntax-propertize-captures could only apply syntax = to specific characters inside the text - it would search for parens, = brackets, (something else?), and put the "punctuation" syntax on them - = that should play nicer with sexp/word/symbol navigation. >=20 > A bit more code, but OTOH we would drop the (eq ne (1+ ns)) = distinction. That=E2=80=99s a good idea! I implemented this. Now forward-sexp should = work as normal. Yuan=