GNU bug report logs - #6978
show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97

Previous Next

Packages: emacs, cc-mode;

Reported by: "Bob" <purchasebyemail1 <at> comcast.net>

Date: Fri, 3 Sep 2010 16:10:02 UTC

Severity: minor

Found in versions 24.0.90, 27.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "Bob" <purchasebyemail1 <at> comcast.net>
Subject: bug#6978: closed (Re: bug#6978: show-paren-mode doesn't match
 when scope "::" operator is used : emacs 32.1.97)
Date: Fri, 11 Oct 2019 19:33:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#6978: show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97

which was filed against the emacs,cc-mode package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 6978 <at> debbugs.gnu.org.

-- 
6978: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6978
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Richard Copley <rcopley <at> gmail.com>, 6978-done <at> debbugs.gnu.org
Subject: Re: bug#6978: show-paren-mode doesn't match when scope "::" operator
 is used : emacs 32.1.97
Date: Fri, 11 Oct 2019 19:32:48 +0000
Hello, Stefan.

On Sun, Oct 06, 2019 at 22:21:39 +0200, Stefan Kangas wrote:
> Hi Alan,

> Alan Mackenzie <acm <at> muc.de> 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).

[Message part 3 (message/rfc822, inline)]
From: "Bob" <purchasebyemail1 <at> comcast.net>
To: <bug-gnu-emacs <at> gnu.org>
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 part 4 (text/plain, inline)]
 

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>           // "(show-paren-mode)" correctly matches `>` to
`<` 

  {

  };

}

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

[Message part 5 (text/html, inline)]

This bug report was last modified 5 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.