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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: "Bob" <purchasebyemail1@HIDDEN>; dated Fri, 3 Sep 2010 16:10:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug Marked as found in versions 24.0.90. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Sep 2010 16:09:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 03 12:09:52 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OrYpr-0007PJ-PB
	for submit <at> 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 <purchasebyemail1@HIDDEN>) id 1OrYpq-0007PD-RW
	for submit <at> 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 <purchasebyemail1@HIDDEN>) id 1OrYrX-0003h7-HR
	for submit <at> 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 <purchasebyemail1@HIDDEN>) id 1OrYrS-0003ea-OZ
	for submit <at> 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@HIDDEN; Fri, 03 Sep 2010 12:11:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <purchasebyemail1@HIDDEN>) id 1OrYkl-0002RU-62
	for bug-gnu-emacs@HIDDEN; 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 <purchasebyemail1@HIDDEN>) id 1OrYkk-0002Qy-Ot
	for bug-gnu-emacs@HIDDEN; 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" <purchasebyemail1@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> 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<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
`<` 

  {

  };

}

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


------=_NextPart_000_0004_01CB4B47.1D593D60
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DWordSection1>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Emacs 23.1.97:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>When using the C++ scope operator &quot;::&quot;,
show-paren-mode gets confused:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>------ &nbsp;Foo.cpp =
------------------------------------<o:p></o:p></p>

<p class=3DMsoNormal>struct Foo1 {};<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>namespace X<o:p></o:p></p>

<p class=3DMsoNormal>{<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; struct Foo2 {};<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>&nbsp; template&lt;class _Y&gt;<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; struct Bar;<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>&nbsp; template&lt;&gt;<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; struct =
Bar&lt;::Foo1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //
&quot;(show-paren-mode)&quot; does not match `&gt;` to =
`&lt;`<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; {<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; };<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>&nbsp; template&lt;&gt;<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; struct =
Bar&lt;Foo2&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; //
&quot;(show-paren-mode)&quot; correctly matches `&gt;` to `&lt;` =
<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; {<o:p></o:p></p>

<p class=3DMsoNormal>&nbsp; };<o:p></o:p></p>

<p class=3DMsoNormal>}<o:p></o:p></p>

<p =
class=3DMsoNormal>---------------------------------------------<o:p></o:p=
></p>

</div>

</body>

</html>

------=_NextPart_000_0004_01CB4B47.1D593D60--





Acknowledgement sent to "Bob" <purchasebyemail1@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6978; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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