emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#6978: closed (show-paren-mode doesn't match when s


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#6978: closed (show-paren-mode doesn't match when scope "::" operator is used : emacs 32.1.97)
Date: Fri, 11 Oct 2019 19:33:02 +0000

Your message dated Fri, 11 Oct 2019 19:32:48 +0000
with message-id <20191011193248.GA7706@ACM>
and subject line Re: bug#6978: show-paren-mode doesn't match when scope "::" 
operator is used : emacs 32.1.97
has caused the debbugs.gnu.org bug report #6978,
regarding show-paren-mode doesn't match when scope "::" operator is used : 
emacs 32.1.97
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
6978: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6978
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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

 

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 `<`

  {

  };

}

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


--- End Message ---
--- Begin Message --- 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 User-agent: Mutt/1.10.1 (2018-07-13)
Hello, Stefan.

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

> Alan Mackenzie <address@hidden> 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).


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]