From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bob" Newsgroups: gmane.emacs.bugs Subject: bug#6978: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01CB4B47.1D593D60" X-Trace: dough.gmane.org 1283532036 470 80.91.229.12 (3 Sep 2010 16:40:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 16:40:36 +0000 (UTC) To: 6978@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 03 18:40:35 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OrZJa-0003Ep-Kh for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Sep 2010 18:40:35 +0200 Original-Received: from localhost ([127.0.0.1]:60113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrZJZ-0004Al-TX for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Sep 2010 12:40:33 -0400 Original-Received: from [140.186.70.92] (port=33101 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrZJ0-0003vV-JI for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 12:39:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrZIv-00005r-F6 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 12:39:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35595) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrZIv-00005l-D4 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 12:39:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OrYq3-0007Pk-Ap; Fri, 03 Sep 2010 12:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Bob" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Sep 2010 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6978 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.128353019228482 (code B ref -1); Fri, 03 Sep 2010 16:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2010 16:09:52 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 03 Sep 2010 12:10:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39935 Archived-At: 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--