From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 03 12:09:52 2010 Received: (at submit) by debbugs.gnu.org; 3 Sep 2010 16:09:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrYpr-0007PJ-PB for submit@debbugs.gnu.org; Fri, 03 Sep 2010 12:09:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrYpq-0007PD-RW for submit@debbugs.gnu.org; Fri, 03 Sep 2010 12:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrYrX-0003h7-HR for submit@debbugs.gnu.org; Fri, 03 Sep 2010 12:11:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_20, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:56885) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrYrS-0003ea-OZ for submit@debbugs.gnu.org; Fri, 03 Sep 2010 12:11:35 -0400 Received: from [140.186.70.92] (port=50444 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrYnt-0007wR-AT for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 12:11:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrYkl-0002RU-62 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 12:04:36 -0400 Received: from qmta13.emeryville.ca.mail.comcast.net ([76.96.27.243]:48172) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrYkk-0002Qy-Ot for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 12:04:35 -0400 Received: from omta17.emeryville.ca.mail.comcast.net ([76.96.30.73]) by qmta13.emeryville.ca.mail.comcast.net with comcast id 2Be01f0051afHeLADG4XLE; Fri, 03 Sep 2010 16:04:31 +0000 Received: from Cache ([71.202.16.94]) by omta17.emeryville.ca.mail.comcast.net with comcast id 2G4W1f00a21mHQP8dG4X3w; Fri, 03 Sep 2010 16:04:31 +0000 From: "Bob" To: Subject: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 Date: Fri, 3 Sep 2010 09:05:11 -0700 Message-ID: <000301cb4b81$c9b81560$5d284020$@net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01CB4B47.1D593D60" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: ActLgckk5dQxtRPfQFyeNxoD/W+QQA== Content-Language: en-us X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. ------=_NextPart_000_0004_01CB4B47.1D593D60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Emacs 23.1.97: When using the C++ scope operator "::", show-paren-mode gets confused: ------ Foo.cpp ------------------------------------ struct Foo1 {}; namespace X { struct Foo2 {}; template struct Bar; template<> struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` to `<` { }; template<> struct Bar // "(show-paren-mode)" correctly matches `>` to `<` { }; } --------------------------------------------- ------=_NextPart_000_0004_01CB4B47.1D593D60 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

Emacs 23.1.97:

 

When using the C++ scope operator "::", show-paren-mode gets confused:

 

------  Foo.cpp = ------------------------------------

struct Foo1 {};

 

namespace X

{

  struct Foo2 {};

 

  template<class _Y>

  struct Bar;

 

  template<>

  struct = Bar<::Foo1>         // "(show-paren-mode)" does not match `>` to = `<`

  {

  };

 

  template<>

  struct = Bar<Foo2>         &nbs= p; // "(show-paren-mode)" correctly matches `>` to `<` =

  {

  };

}

---------------------------------------------

------=_NextPart_000_0004_01CB4B47.1D593D60-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 16:28:16 2011 Received: (at control) by debbugs.gnu.org; 3 Oct 2011 20:28:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAp7Y-0003QV-K3 for submit@debbugs.gnu.org; Mon, 03 Oct 2011 16:28:16 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAp7W-0003QM-Ch for control@debbugs.gnu.org; Mon, 03 Oct 2011 16:28:15 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RAp68-0005yV-Ox for control@debbugs.gnu.org; Mon, 03 Oct 2011 16:26:48 -0400 Date: Mon, 03 Oct 2011 16:26:48 -0400 Message-Id: Subject: control message for bug 6978 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) found 6978 24.0.90 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 07:39:42 2019 Received: (at 6978) by debbugs.gnu.org; 6 Oct 2019 11:39:42 +0000 Received: from localhost ([127.0.0.1]:45670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH4t4-0003Do-A0 for submit@debbugs.gnu.org; Sun, 06 Oct 2019 07:39:42 -0400 Received: from mail-pf1-f178.google.com ([209.85.210.178]:37303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH4t3-0003DV-6s for 6978@debbugs.gnu.org; Sun, 06 Oct 2019 07:39:41 -0400 Received: by mail-pf1-f178.google.com with SMTP id y5so6853334pfo.4 for <6978@debbugs.gnu.org>; Sun, 06 Oct 2019 04:39:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=7V3gTbc2KwCpGfFQASHpHdaUdeKq9kfRB5zUcIftYOA=; b=ka23qw4z1t351mQhbxwG1PDCLYFaumsOtdacQ6UXM2hc6Go5hsBSE6ZOfed6/vMHDZ 4hjfzsiY5J9FhuwUdWtRHzNLtCw4TXh4Huhr2DvDTD8VWRu5XE9P4woTMo2q7XN/vcYv 3Ka/H+osr94mS2nyYAS8CFR8XL3zFnSTDwYfEvIdthY7D9PS4rvjSx9rbLMnJZ8L6FUw nTMcAm0NtEhBYIh4XVAu/mxgB4SVsrr10YR7XgWEdk+6dlydlQ38D1Th+RbmVqPU7Xcq gDFKflkE5VGv5wxBZxMFCT1QWtIK/hRo7UUC6FbJPHln3Lpevu/FdF2LOGOP+DAa0zEa B7ww== X-Gm-Message-State: APjAAAUu9gddAoN4q02552StCb0mch+8nUYMD46za+mee4RQaRq20SY6 b+q9XG8NKOjKSIDU1SxVSSkv2XsIQnn2/p6eDyLFE6OE X-Google-Smtp-Source: APXvYqy6urh6NcU5/OcA6hg6eHcYEhZaU9cQSWzZpZpp0LZkgEzqsS0A0hTPPWIlkLZ+hpxnc3vRARjhE7FBkRp0k48= X-Received: by 2002:a63:720f:: with SMTP id n15mr24257521pgc.198.1570361975385; Sun, 06 Oct 2019 04:39:35 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Sun, 6 Oct 2019 13:39:24 +0200 Message-ID: Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 To: Bob Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 6978 Cc: 6978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) severity 6978 minor found 6978 27.0.50 quit "Bob" writes: > > > Emacs 23.1.97: > > > > When using the C++ scope operator "::", show-paren-mode gets confused: > > > > ------ Foo.cpp ------------------------------------ > > struct Foo1 {}; > > > > namespace X > > { > > struct Foo2 {}; > > > > template > > struct Bar; > > > > template<> > > struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` to `<` > > { > > }; > > > > template<> > > struct Bar // "(show-paren-mode)" correctly matches `>` to `<` > > { > > }; > > } > > --------------------------------------------- I can reproduce this on current master. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 13:38:54 2019 Received: (at 6978) by debbugs.gnu.org; 6 Oct 2019 17:38:54 +0000 Received: from localhost ([127.0.0.1]:46805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHAUg-0008IF-3j for submit@debbugs.gnu.org; Sun, 06 Oct 2019 13:38:54 -0400 Received: from colin.muc.de ([193.149.48.1]:11122 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iHAUd-0008I5-Pi for 6978@debbugs.gnu.org; Sun, 06 Oct 2019 13:38:52 -0400 Received: (qmail 60220 invoked by uid 3782); 6 Oct 2019 17:38:50 -0000 Date: 6 Oct 2019 17:38:50 -0000 Message-ID: <20191006173850.60219.qmail@mail.muc.de> From: Alan Mackenzie To: Stefan Kangas Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.3-RELEASE-p3 (amd64)) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 6978 Cc: 6978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) In article you wrote: > severity 6978 minor > found 6978 27.0.50 > quit > "Bob" writes: >> >> >> Emacs 23.1.97: >> >> >> >> When using the C++ scope operator "::", show-paren-mode gets confused: >> >> >> >> ------ Foo.cpp ------------------------------------ >> >> struct Foo1 {}; >> >> >> >> namespace X >> >> { >> >> struct Foo2 {}; >> >> >> >> template >> >> struct Bar; >> >> >> >> template<> >> >> struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` to `<` >> >> { >> >> }; >> >> >> >> template<> >> >> struct Bar // "(show-paren-mode)" correctly matches `>` to `<` >> >> { >> >> }; >> >> } >> >> --------------------------------------------- > I can reproduce this on current master. This is a CC Mode bug. The pertinent < and > are not being marked with syntax-table text properties, hence can't be recognised as parens. I'll be looking into this. > Best regards, > Stefan Kangas -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 14:56:54 2019 Received: (at 6978) by debbugs.gnu.org; 6 Oct 2019 18:56:54 +0000 Received: from localhost ([127.0.0.1]:46868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHBiA-0001zT-GT for submit@debbugs.gnu.org; Sun, 06 Oct 2019 14:56:54 -0400 Received: from mail-ot1-f48.google.com ([209.85.210.48]:46604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHBi7-0001zD-QB for 6978@debbugs.gnu.org; Sun, 06 Oct 2019 14:56:52 -0400 Received: by mail-ot1-f48.google.com with SMTP id 89so9194036oth.13 for <6978@debbugs.gnu.org>; Sun, 06 Oct 2019 11:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bQ+KXavdlsbxIqboXD7IYM7COEtnRmFK70XxL1kRbEI=; b=FiOSUf6UjLLIi0wcz6MF0ikz+fO50qTeSFkAkc3NzpkpI4e0EPsbhageekw3IPxmed aQ1W3fVCjloyi3VxtndG56zPgidyrGt3ulLAZly5j6D16lVz9gDsvUp7uVdatPxefCj3 e+BXy8aYac1tSXRUMqIyWTR7l/wsVYe4XvCYcxk3XHvz7q4tWOQtrBqkuO88f1Yk0X9N 0pHXSZ4hxw0R5poYISUsyhvmgXzQ2cZU6tyEEAbp/lsW26CAx0YOyMVxKx9QHPRM8Zmc 81Qxo63UQv/Y4S7k8QH4JZBg3+OwyvEcde69aagIW7WHLp1+5f+jt5UOU8VVZWVanSTy zT2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bQ+KXavdlsbxIqboXD7IYM7COEtnRmFK70XxL1kRbEI=; b=mnN0uQPXZ6yD0x1AIR19cUZjhQtpRiWVD8tmW3whm/bNXpzrJ0WdBIN3rCDMEmYVa3 MrHYYz3kUHnAZKIBjL0bO/fESqNiGJxDONVYHRimINeY4iXIHysvdf5xpiKr3dtMAaYQ cuHmNz4V4/TjumJ9kqJ51nHC/Ux4RoXB2nKCU9figahgtfvfPg1C4adW0OtzEfy4rehu qO6v/i3+F211Th6/9ZBMUbssadjhrC0fA3k4psB8qC25CSvGhHGSJf6zV4VjdZAnKSgb dVdLe9U5C6Df2OmrRt2EAeZQPan8vq6aSTCqbW8jSaO3Avt4/iRjI6eyGTsbvpQrAfhH 0wpg== X-Gm-Message-State: APjAAAWHAs9FpY5O/V4t3+7AfIJGe9FRCtpb0P7OnhtPBsYiddyis/K2 UhVBKZC1dr13HV2G7dVXR9VaTmhpZPnQL6MhH3KkeYCy X-Google-Smtp-Source: APXvYqxcSt0o2yF6YlMO4KIjZY5F0rxn1sXdLwZBLJORzG35hRGUXEjYjSiVdwnP6JyfBHRNUV+cvlTmg929FM0IWvk= X-Received: by 2002:a9d:4a98:: with SMTP id i24mr13456798otf.126.1570388206035; Sun, 06 Oct 2019 11:56:46 -0700 (PDT) MIME-Version: 1.0 References: <000301cb4b81$c9b81560$5d284020$@net> <20191006173850.60219.qmail@mail.muc.de> In-Reply-To: <20191006173850.60219.qmail@mail.muc.de> From: Richard Copley Date: Sun, 6 Oct 2019 19:56:19 +0100 Message-ID: Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 To: Alan Mackenzie Content-Type: multipart/alternative; boundary="0000000000002e37f10594427fbd" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 6978 Cc: 6978@debbugs.gnu.org, Stefan Kangas X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000002e37f10594427fbd Content-Type: text/plain; charset="UTF-8" On Sun, 6 Oct 2019 at 18:39, Alan Mackenzie wrote: > In article you wrote: > > "Bob" writes: > >> struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` > to `<` > The pertinent < and > are not being marked with > syntax-table text properties, hence can't be recognised as parens. > Digraphs? (Just a thought.) Best, Richard. --0000000000002e37f10594427fbd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 6 Oct 2019 at 18:39, Alan Mackenzie <acm@muc.de> wrote:
In article <mailman.1087.1570362019.265= 1.bug-gnu-emacs@gnu.org> you wrote:
> "Bob" <purchasebyema= il1@comcast.net> writes:
>>=C2=A0 =C2=A0struct Bar<::Foo1>=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0// "(show-paren-mode)" does not match `>` to `<`
T= he pertinent < and > are not being marked with
syntax-table text properties, hence can't be recognised as parens.
<= /blockquote>

Digraphs? (Just a thought.)

<= /div>
Best,
Richard.

--0000000000002e37f10594427fbd-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 15:16:12 2019 Received: (at 6978) by debbugs.gnu.org; 6 Oct 2019 19:16:13 +0000 Received: from localhost ([127.0.0.1]:46885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHC0p-0002Y5-T4 for submit@debbugs.gnu.org; Sun, 06 Oct 2019 15:16:12 -0400 Received: from colin.muc.de ([193.149.48.1]:20419 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iHC0n-0002Xt-0w for 6978@debbugs.gnu.org; Sun, 06 Oct 2019 15:16:10 -0400 Received: (qmail 95121 invoked by uid 3782); 6 Oct 2019 19:16:07 -0000 Date: 6 Oct 2019 19:16:07 -0000 Message-ID: <20191006191607.95120.qmail@mail.muc.de> From: Alan Mackenzie To: Richard Copley Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.3-RELEASE-p3 (amd64)) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 6978 Cc: 6978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Richard. In article you wrote: > [-- text/plain, encoding 7bit, charset: UTF-8, 15 lines --] > On Sun, 6 Oct 2019 at 18:39, Alan Mackenzie wrote: >> In article you wrote: >> > "Bob" writes: >> >> struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` >> >> to `<` >> The pertinent < and > are not being marked with >> syntax-table text properties, hence can't be recognised as parens. >> > Digraphs? (Just a thought.) Spot on! I just need to find a way of removing <: from the regexp used to check the opening <. Shouldn't be too difficult. Why on earth are digraphs still an issue? Why are they still in the C and C++ standards? It's been several decades since "complete" character sets (here, meaning ASCII) superseded incomplete ones. > Best, > Richard. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 16:11:42 2019 Received: (at 6978) by debbugs.gnu.org; 6 Oct 2019 20:11:42 +0000 Received: from localhost ([127.0.0.1]:46935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHCsY-00046o-1d for submit@debbugs.gnu.org; Sun, 06 Oct 2019 16:11:42 -0400 Received: from colin.muc.de ([193.149.48.1]:24935 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iHCsW-00046f-8Q for 6978@debbugs.gnu.org; Sun, 06 Oct 2019 16:11:40 -0400 Received: (qmail 12965 invoked by uid 3782); 6 Oct 2019 20:11:38 -0000 Received: from acm.muc.de (p4FE15E04.dip0.t-ipconnect.de [79.225.94.4]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 06 Oct 2019 22:11:36 +0200 Received: (qmail 10003 invoked by uid 1000); 6 Oct 2019 20:11:36 -0000 Date: Sun, 6 Oct 2019 20:11:36 +0000 To: Richard Copley , Stefan Kangas Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 Message-ID: <20191006201136.GA9938@ACM> References: <000301cb4b81$c9b81560$5d284020$@net> <20191006191607.95120.qmail@mail.muc.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191006191607.95120.qmail@mail.muc.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 6978 Cc: 6978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Stefan and Richard. On Sun, Oct 06, 2019 at 19:16:07 -0000, Alan Mackenzie wrote: > In article you wrote: > > [-- text/plain, encoding 7bit, charset: UTF-8, 15 lines --] > > On Sun, 6 Oct 2019 at 18:39, Alan Mackenzie wrote: > >> In article you wrote: > >> > "Bob" writes: > >> >> struct Bar<::Foo1> // "(show-paren-mode)" does not match `>` > >> >> to `<` > >> The pertinent < and > are not being marked with > >> syntax-table text properties, hence can't be recognised as parens. > > Digraphs? (Just a thought.) > Spot on! > I just need to find a way of removing <: from the regexp used to check > the opening <. Shouldn't be too difficult. The following seems to fix the bug: diff -r b0943da37755 cc-langs.el --- a/cc-langs.el Thu Oct 03 14:14:45 2019 +0000 +++ b/cc-langs.el Sun Oct 06 20:08:43 2019 +0000 @@ -1382,11 +1382,11 @@ (c-lang-defconst c-<-op-cont-regexp ;; Regexp matching the second and subsequent characters of all - ;; multicharacter tokens that begin with "<". + ;; multicharacter tokens that begin with "<", apart from digraphs. t (c-make-keywords-re nil (c-filter-ops (c-lang-const c-all-op-syntax-tokens) t - "\\`<." + "\\`<[^:]" (lambda (op) (substring op 1))))) (c-lang-defvar c-<-op-cont-regexp (c-lang-const c-<-op-cont-regexp)) > > Best, > > Richard. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 16:21:58 2019 Received: (at 6978) by debbugs.gnu.org; 6 Oct 2019 20:21:58 +0000 Received: from localhost ([127.0.0.1]:46939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHD2U-0004Od-3S for submit@debbugs.gnu.org; Sun, 06 Oct 2019 16:21:58 -0400 Received: from mail-pg1-f171.google.com ([209.85.215.171]:38605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHD2S-0004OL-2Z for 6978@debbugs.gnu.org; Sun, 06 Oct 2019 16:21:56 -0400 Received: by mail-pg1-f171.google.com with SMTP id x10so6891416pgi.5 for <6978@debbugs.gnu.org>; Sun, 06 Oct 2019 13:21:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ksm4jzBiGbjgBX/pnGPRa45Hd0N9VtkrstXW+CXTJrU=; b=ZHi29vVL/PYgr/vcnZccDf/dLkNI5Vi8NWgX6UUgjDignKxW2RyIW7TG+qowJ3LS7C 6griLxhBANWuPVQ7glA5n4N3Nu3vAitRTcddMM9Q2xV1fhVe/1uEIc6WzlGSqqhZ/j4J u9s0L3HQyNok9h64nuIM8z5fvG5QKOE886rHrZM3J8ZWEMuYsTuIYAb84li/0/D0j+Rk QR4nOzOQ76pNGMWLzXO1wjuZUtnSwZptzYUVOGWZnFqzx9tMZjaeNZWbWc52ka1f+AuU noQ1bio+s1B/myCoQ2VApbSbRd96Dcm4tI+bUpjzIZ3PQNCu2P10tX/dE4bpSpqZW9Li s/Vw== X-Gm-Message-State: APjAAAVoOyLct39lnwXgbAHhK5SS02JPh9GRnsRRC3eYHD5LWrEl1do8 uN8HRXfucxKB8HQoOrGsggbvsaV+oNhisugL2oI= X-Google-Smtp-Source: APXvYqwbIPwbOguvmSFsyBgEZ8vWkfoNMI6uM9rqw3ve3A58uCKlenlozBlSAnwSn7MTETmZ414Qu+dZsLDYkVdWO9k= X-Received: by 2002:a63:720f:: with SMTP id n15mr25925731pgc.198.1570393310270; Sun, 06 Oct 2019 13:21:50 -0700 (PDT) MIME-Version: 1.0 References: <000301cb4b81$c9b81560$5d284020$@net> <20191006191607.95120.qmail@mail.muc.de> <20191006201136.GA9938@ACM> In-Reply-To: <20191006201136.GA9938@ACM> From: Stefan Kangas Date: Sun, 6 Oct 2019 22:21:39 +0200 Message-ID: Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 To: Alan Mackenzie Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 6978 Cc: Richard Copley , 6978@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Hi Alan, Alan Mackenzie writes: > The following seems to fix the bug: I can verify that applying your patch to current master fixes the bug for me. I think you can push and close this bug. Thanks for fixing it. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 11 15:32:54 2019 Received: (at 6978-done) by debbugs.gnu.org; 11 Oct 2019 19:32:54 +0000 Received: from localhost ([127.0.0.1]:60369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJ0ek-0000OZ-4K for submit@debbugs.gnu.org; Fri, 11 Oct 2019 15:32:54 -0400 Received: from colin.muc.de ([193.149.48.1]:10174 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iJ0eh-0000OP-Ru for 6978-done@debbugs.gnu.org; Fri, 11 Oct 2019 15:32:52 -0400 Received: (qmail 57920 invoked by uid 3782); 11 Oct 2019 19:32:50 -0000 Received: from acm.muc.de (p4FE15DF9.dip0.t-ipconnect.de [79.225.93.249]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 11 Oct 2019 21:32:48 +0200 Received: (qmail 8557 invoked by uid 1000); 11 Oct 2019 19:32:48 -0000 Date: Fri, 11 Oct 2019 19:32:48 +0000 To: Stefan Kangas Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97 Message-ID: <20191011193248.GA7706@ACM> References: <000301cb4b81$c9b81560$5d284020$@net> <20191006191607.95120.qmail@mail.muc.de> <20191006201136.GA9938@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 6978-done Cc: Richard Copley , 6978-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Stefan. On Sun, Oct 06, 2019 at 22:21:39 +0200, Stefan Kangas wrote: > Hi Alan, > Alan Mackenzie writes: > > The following seems to fix the bug: > I can verify that applying your patch to current master fixes the bug > for me. I think you can push and close this bug. Thanks for fixing > it. I've actually developed a longer, more rigorous patch, which I've committed. The C++ standard says that although <:: should be recognised as a template opener, <::>, and <::: should not be. The committed patch follows this. I'm closing the bug with this post. > Best regards, > Stefan Kangas -- Alan Mackenzie (Nuremberg, Germany). From unknown Wed Jun 18 23:14:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Nov 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator