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, 11 Dec 2024 20:56:55 -0800 Message-ID: References: <1A3DAA8F-F00A-4984-AC0F-E62F021A690B@gmail.com> <8634k0ojpp.fsf@gnu.org> <1B168B41-6D66-422B-BA5E-17ABE5548353@gmail.com> <86bjy6m9is.fsf@gnu.org> <86serhjco6.fsf@gnu.org> <3d0c4cf6-1bc7-440e-8354-961ba5736e0d@gutov.dev> <56560205-B14A-4EA8-8818-90E27770A6C6@gmail.com> <763A8C73-8B15-43CC-98E2-5190C7941262@gmail.com> <120cbe49-c34f-4f56-a8fa-80fd2a2480c6@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="13504"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Theodor Thornhill , 73978@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 12 05:59:21 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 1tLbIG-0003Lo-Ry for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 05:59:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLbI4-00056y-57; Wed, 11 Dec 2024 23:59:08 -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 1tLbHy-00056o-No for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 23: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 1tLbHy-0005is-Fu for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 23:59: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=7tN7iyzR748ZpygaLtuQAYefXV80UeH9WRyn8H5OQcg=; b=FpdMEpYm+aqbxyjUElU2K9/jaBFYrt/nGRDdEBHhOwQpA90oMH7AaBkUnrasLUblcRBVIQEZJtNF5MKR/wmozF+HfeHdr8Oxqxx0uo8HTEWg6ZT0xNtdZf7fagYF945v3+GAmPaS/VaQ2z+SvHEPSGXpYPObt4l62blxlMSZkfJbcmg/OQfLaxmoS4y/nYdzSzC3jpjaTyHWAE/l6nKypIQne4s0K8uouoCgmpCghAYoCcveQSWaiPlm/t4XeaXqAPkgrlmq4YoDuptN0ZoiC9HeJa+k9XYPXDog1XOaQCiOi1vK5gJODZZn3jLHXj+ez3Jr6lO0H7NWz8c77Z6hhA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLbHy-0000qz-8i for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 23: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: Thu, 12 Dec 2024 04: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.17339794913169 (code B ref 73978); Thu, 12 Dec 2024 04:59:02 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 12 Dec 2024 04:58:11 +0000 Original-Received: from localhost ([127.0.0.1]:37191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLbH9-0000p3-41 for submit@debbugs.gnu.org; Wed, 11 Dec 2024 23:58:11 -0500 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:50323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLbH6-0000ou-4W for 73978@debbugs.gnu.org; Wed, 11 Dec 2024 23:58:09 -0500 Original-Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-728ea1e0bdbso163015b3a.0 for <73978@debbugs.gnu.org>; Wed, 11 Dec 2024 20:58:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733979427; x=1734584227; 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=7tN7iyzR748ZpygaLtuQAYefXV80UeH9WRyn8H5OQcg=; b=iBboqzpC9Rn8gQmvC78/QgDOgiCJ6kmu4j9LcPDiTo+z1c3iUvMusd2ljtiPFidUyG cCBrORA9M3lPGCd5Bth79QTScL6nU8dYOAlA5SEKtt7Ke32H+G0QeSh4VSWp1RWUrVWr hwVBzbmnEZKVq6VNnkCwPilxd9dtqVqGWB+PD6dfAXL+vvCMifH1SZAqMZlMRlwh0Vo5 aXSVkJjo3PJviKHYuAiWKlDfT9QE3ug4oUU6b+gdKzCWpZ0PxjnvmfBPN6spOMGhD3yE rd8jNqVU9JA8G9w0c+yai9Re7MvlyQSWNkjGf7vrx10ycYwD3PAyv009rvTi058zYcMm gXqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733979427; x=1734584227; 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=7tN7iyzR748ZpygaLtuQAYefXV80UeH9WRyn8H5OQcg=; b=gDTQghTp2o10sOzKQFgs5srDMY0w/CThpHruJfKIIp4YVMPop7S8i5ktbLeDmrYn84 AAPVTgwxaaNQtT9Q9NzE8nIBgSP/PSSJPGX6cBLHkfGcAfefIvMI+eTjc05aTEOmcw2h 380xGjDeH15+L17xVDdLeeb8HtI9Wuvt+xPvfavSmF6rV6NFfyETrsHM3boZgHCzzUzp Wm34su6Ingt0R+heuLCSw2dsg2lasSNHXC+MzqbGHiGTYwHs/rgSCAYM7j/avnMrVypr /8gEZwv3Je/n80+VCM9ugbxdsJtcCQiuf6Fp4QXDgURrlDCto6sfGWH7seOmzl2aFP2K oGpg== X-Forwarded-Encrypted: i=1; AJvYcCWr7eOPUDvXfKMo7VdLS3ra22n/BJ5sxHCtIbz4Y1YBm14+kA/Pu/hNxidSqhIatFbvNIbr4w==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw/z4/5dwcTy3L1VRQ+wP2IASk0S7w8Envd8wuIHbviUALWxQXF UKu/LK+PfPW35BHHkY7l8ZTTlZ6MSRtTM5PciTYXNU1P1kQHyIjDSt/2rQ== X-Gm-Gg: ASbGncvlWWsdL4Za7i5XZtjHP9QazmqLh0wQb0bodt0+Z7gEu4L6VlnAamHxHG92Jjs oyYFNKV1pE6zCMmmzPWwU40LBmNL6U2Eo1Hhu7Nftvg282/vXnFrvCLjfwx8nEDTaCyMvEu+/Zt lBVm/kCfG3VejhlIikS1F9P1ni7KesxTzrG4+kw39ZA0f3C3qB4wz10Ru3h1EVKrQa3op22zlxV sZ1pX19cv7646Pr4xLX9ckzHn+QXIxXxYjh9K2o1+RHVAKm4Kajqq3i6RmOb0Ghg0+1fxgB6AWZ 4ENG X-Google-Smtp-Source: AGHT+IEYukyVzV8qjwcbP8OjnBV34rn69iD3Y4/64fbzNAFebxVPD448q8G4PyKbyTjJ1b7ZbOVQxQ== X-Received: by 2002:a05:6a20:244f:b0:1e0:d87a:f67 with SMTP id adf61e73a8af0-1e1cea99e9fmr2940201637.13.1733979427418; Wed, 11 Dec 2024 20:57:07 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:e40f:e83b:f0f0:1e5e]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-725d8661cb5sm8607747b3a.127.2024.12.11.20.57.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2024 20:57:06 -0800 (PST) In-Reply-To: <120cbe49-c34f-4f56-a8fa-80fd2a2480c6@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:296884 Archived-At: > On Dec 11, 2024, at 6:52=E2=80=AFPM, Dmitry Gutov = wrote: >=20 > On 11/12/2024 06:52, Yuan Fu wrote: >>> The problem is, that doesn=E2=80=99t work when there=E2=80=99s only = one character. Take the snippet as an example: >>>=20 >>> >>>=20 >>> You can=E2=80=99t put the string fence syntax on the =E2=80=9Ca=E2=80=9D= , because there isn=E2=80=99t a closing fence to close it. >>>=20 >>> Yuan >> Circling back on this. I don=E2=80=99t think there=E2=80=99s a way to = apply string syntax to a single character. >=20 > Indeed, sorry. >=20 > There needs to be a separate char as a "closing fence" like you say = because it's treated as a part of the string. So it's 2 chars minimum. How hard is it to add a new syntax for this case? Or is there some way = to work around this? We can=E2=80=99t just not apply the string syntax, = because if the =E2=80=9Ca=E2=80=9D is a parenthesis, etc, it would mess = up the parenthesis balancing after it. Maybe just give it a whitespace syntax?=20 Yuan=