From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#73978: 31.0.50; Text syntax applied on too many things in tsx-ts-mode Date: Thu, 26 Dec 2024 07:37:17 +0200 Message-ID: <28f6a7a3-8b09-41f9-8908-10a82be17aaa@gutov.dev> 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 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6979"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Theodor Thornhill , 73978@debbugs.gnu.org To: Yuan Fu , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 26 06:38:28 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 1tQgZm-0001hK-Mx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 06:38:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQgZR-0003FE-5k; Thu, 26 Dec 2024 00:38: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 1tQgZO-0003Eq-HN for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 00:38: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 1tQgZO-0000au-8r for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 00:38:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=jvQ0eWg8//LGIpdgCOjwYTbKDqLNeYggi9Tqs6V/M3s=; b=E6ZtOjEiodZ2NJEW21mfSdQr4aPVoOHOcWaFu9XKrr9PKHVckIIFKw++NfbT8QidL104w3IbkV+U1v9N0EZYqJ+hObVn3p8z3gMZYHOtiRN6UtEVQvpupoRchBCeEdIn+WrMSk/ly+NJE2GLQS/RFR8eYSlXc/qNF1F+o0xafT3Em3K4Jx/1P+Ojrbti+KiGOVXOCW2jteulv0GxPqtKnTkg13mzbEu4heLL7p5MeEiRcF8Je4vAO922JTf7QA+VpTI3I/IhjYx1CeW9LhBLaHuDd/x6tR32gbB5nEr6o1YtynVEXYXKpWTmEMVQ2mqQ4h4kxlB198B8kVZGsDxB6Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQgZO-0000gH-3P for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2024 00:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2024 05:38: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.17351914512542 (code B ref 73978); Thu, 26 Dec 2024 05:38:02 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 26 Dec 2024 05:37:31 +0000 Original-Received: from localhost ([127.0.0.1]:39780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQgYt-0000ew-4G for submit@debbugs.gnu.org; Thu, 26 Dec 2024 00:37:31 -0500 Original-Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]:37867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQgYq-0000eg-8Q for 73978@debbugs.gnu.org; Thu, 26 Dec 2024 00:37:29 -0500 Original-Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id F0950114013D; Thu, 26 Dec 2024 00:37:21 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Thu, 26 Dec 2024 00:37:21 -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=fm3; t=1735191441; x=1735277841; bh=jvQ0eWg8//LGIpdgCOjwYTbKDqLNeYggi9Tqs6V/M3s=; b= KMPImLrEucyZuy3I7F7TuthZqW55fqfTExqOp+dy5tFZ2w7M5Xy0T1+NEb1Y1PTS 59qNeqbbNEIiDyDxB8qu9ZbvkvUpA93GIOTjI51WR2vYV/i4QpVpOzw6fPFe+UTY 4aIzMepaLZ6GfWZa19qwBEuB9TPQ/GkoRllPS+r57DAv4uDGToQZqhu2Jp2O9FGS 3kL/LIRFRWwfgsjOEUnKPIggRLRrd0euMDiVHZULFLsIt7JQ8iTOgGn7RsatDjkA 3cGPC8DL5Ygywf82IGn/+BnxEghrMUXE4p9h+iwShaHISVNi33uKapKCmAbLi/JZ UpLjkNDYseH4ixLHpRAZZA== 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=1735191441; x= 1735277841; bh=jvQ0eWg8//LGIpdgCOjwYTbKDqLNeYggi9Tqs6V/M3s=; b=B WXGu4dKY8aX3NdQLm1PSUqI3hMK86jetNam8BiZcI+o1tpHnxv3/W9gBo8baWaLD xZZLLBOX6Lr0+lewY2CH0mFd6fMvjBWECrv83dc65XF1YnjaKlt6WhdRdo8KDJb7 k4NSJlSy3KfEn+tknNghcuVFfmGTFNHpHhPJN0jj/BdDFQ9IuT9ZZ4PvzsVP65q9 jAq2YCAJn7uXMufVaQ9gJv+0oj0dYG0Pum9LuBglwjGWUcIEBIbEcSK2Fw1gxfQK Txo7zmLocUa8JICcb2kA3S9ArY7gxduY0CgT20OLF6kZZak8Jth5vtZyHLy5lyq1 tWwD4twqzxZKgw1hRshcw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddujedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveeg tedthefhudekteehffeukeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegtrghsohhurhhisehgmhgrih hlrdgtohhmpdhrtghpthhtohepjhhurhhisehlihhnkhhovhdrnhgvthdprhgtphhtthho pehthhgvohesthhhohhrnhhhihhllhdrnhhopdhrtghpthhtohepjeefleejkeesuggvsg gsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 Dec 2024 00:37:19 -0500 (EST) Content-Language: en-US In-Reply-To: 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:297747 Archived-At: On 25/12/2024 10:33, Yuan Fu wrote: >> 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? > Then let’s 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’t work right. Is there another way to tell syntax-ppss to skip a chunk of text when scanning? Maybe not. 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. A bit more code, but OTOH we would drop the (eq ne (1+ ns)) distinction.