From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Date: Thu, 15 Dec 2022 13:10:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000aa406a05efdd92bb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eason Huang , 60087@debbugs.gnu.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 14:32:48 2022 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 1p5oLw-000AEn-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 14:32:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5o11-0006Y0-Uk; Thu, 15 Dec 2022 08:11:11 -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 1p5o0t-0006Vw-06 for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 08:11:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5o0s-0003em-Nz for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 08:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5o0s-0005tT-Jz for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 08:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs Original-Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167110981922635 (code B ref 60087); Thu, 15 Dec 2022 13:11:02 +0000 Original-Received: (at 60087) by debbugs.gnu.org; 15 Dec 2022 13:10:19 +0000 Original-Received: from localhost ([127.0.0.1]:42973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5o0B-0005t1-1c for submit@debbugs.gnu.org; Thu, 15 Dec 2022 08:10:19 -0500 Original-Received: from mail-oi1-f177.google.com ([209.85.167.177]:40655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5o08-0005sp-Gq for 60087@debbugs.gnu.org; Thu, 15 Dec 2022 08:10:17 -0500 Original-Received: by mail-oi1-f177.google.com with SMTP id k189so5221409oif.7 for <60087@debbugs.gnu.org>; Thu, 15 Dec 2022 05:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dtLG1lMnStuvbFiHO068I38fAqfe3IIGS/0/srvwKxU=; b=BREeu7Fc38lM/8KwwEhL561x5Fa52KT4B1j8H7TVzGufqZR6Y402zAAsNZ0aowoVZP dQpAbjTyILBWFZsXivIZ7HarK2Ve2OjtxlC+XsRI1PuSBXSc4vwjTGivuMayAjymVZH6 lzq5fsbnxKIonr39yz5oPfpGpLq20E42roj0chyYR3h2NVWEFUKPl7wX0kEdROtB1+d6 /Yw3RdGK3otmSAQBTglC97DNhYcrqFmskjprJadwFUf75coZ9iR+uOtPZ+2gfANR6pxz QX5l+W0p8Do59Spt/XCCR3ukgo+miRRp3/6W1maFesq1gMah2zIJXAWB7XEzoapuIuDj g2ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dtLG1lMnStuvbFiHO068I38fAqfe3IIGS/0/srvwKxU=; b=bSsUTiPKDo4gZGytAwqSGoikkYxl1CMaBAPJ0m8cQYFiFuuNFN1maUZyoiRkRLUz1v gdqKRyVzeTliTtTB1ts3Evh+EEqqek/7B4e1gl9QAz9XrUuviWnFnOEFWsUd+IyB1ArJ iEt8nn5yFVLYfGv1ngNAkV1BhwINGL+CqmbgUYXkWyvmrU7P9dtGJHOQf2/BETD7ea2c JU0UrwQJQAQODVC2nfjD3JBy93WLXFaiEiVyWwMpCKhUCm++ekzDKYtmed9raENRPLrQ 6Fa3VtOzT4MvrnGWuHDj4SA/Bme7au6bvH8jA1nQiQWCRrgHjVGFtQHwiyg3E9gJD70o o0og== X-Gm-Message-State: ANoB5pneRHVerQs0XtH2tvLBekgsANKA6rVDFPz+7LouERiNL4ooaSTj 7xmD4z0gZxgqEf1vhuUHzvu2+892AnJqlBsT6SY= X-Google-Smtp-Source: AA0mqf4qt5G+7yrABE5flQl/HTV+XZ0nUAzPFrgxHLm2ugY7XyraO64E2K7zsKV0pA2V3Vg9pMTBmpTDQ1FfeQ5Pd/Q= X-Received: by 2002:aca:90f:0:b0:35c:2ddf:59d5 with SMTP id 15-20020aca090f000000b0035c2ddf59d5mr272754oij.215.1671109810993; Thu, 15 Dec 2022 05:10:10 -0800 (PST) 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:251088 Archived-At: --000000000000aa406a05efdd92bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 15, 2022 at 12:25 PM Daniel Mart=C3=ADn via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > > Thanks for the report. I think the bug is that we need a second > character in the syntax table entry, to set the correct matching > delimiter. > > Does the following patch solve this issue and bug#60049? > > I don't know how this can work if '<' is going to be used to input the less-than operator. I think more complex syntax-propertization functionality is going to be needed here. I don't have a tree-sitter build to test, but I'd say that the tree-sitter backend should be asked about what kind of '<' and '>' we're talking about. AFAICT, just saying that '<' has the delimiter syntax in C++ is wrong. It's not like '(' or '{.' Jo=C3=A3o --000000000000aa406a05efdd92bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Dec 15, 2022 at 12:25 PM Daniel M= art=C3=ADn via Bug reports for GNU Emacs, the Swiss army knife of text edit= ors <bug-gnu-emacs@gnu.org&= gt; wrote:

Thanks for the report.=C2=A0 I think the bug is that we need a second
character in the syntax table entry, to set the correct matching
delimiter.

Does the following patch solve this issue and bug#60049?


I don't know how this can work if '<' = is going to be used to input
the less-than operator.=C2=A0 I thin= k more complex syntax-propertization
functionality is going to be= needed here.=C2=A0 I don't have a tree-sitter
build to test,= but I'd say that the tree-sitter backend should be asked
abo= ut what kind of '<' and '>' we're talking about.= =C2=A0 AFAICT, just
saying that '<' has the delimiter = syntax in C++ is wrong. It's not
like '(' or '{.&= #39;

Jo=C3=A3o
--000000000000aa406a05efdd92bb--