GNU bug report logs - #10590
c++-mode closing nested template angle braces breaks font-lock, indentation and show-paren-mode.

Previous Next

Packages: emacs, cc-mode;

Reported by: Matt Renaud <mrenaud92 <at> gmail.com>

Date: Tue, 24 Jan 2012 02:56:02 UTC

Severity: normal

Fixed in version 25.1

Done: Alex <agrambot <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10590 in the body.
You can then email your comments to 10590 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10590; Package emacs. (Tue, 24 Jan 2012 02:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matt Renaud <mrenaud92 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 24 Jan 2012 02:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matt Renaud <mrenaud92 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: c++-mode closing nested template angle braces breaks font-lock,
	indentation and show-paren-mode.
Date: Mon, 23 Jan 2012 21:46:01 -0500
[Message part 1 (text/plain, inline)]
*Emacs Version: *24.0.92.2

When writing C++ code with nested templates, putting two (or more) closing
angle braces together causes the font-lock, show-paren-mode and indentation
to break.  Positioning point on any of the closing parentheses fails to
show the matching opening brace which makes template meta-programs
difficult to read.  Any nested templates will cause this.  The following is
a simple example showing the 2 cases:


template <typename T = std::vector<int>>
  struct foo    // Indentation broken here...
  {
  };


int main()
{
  std::vector<std::vector<int>> vv_int; // Font-lock broken here...

  return 0;
}
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#10590; Package emacs,cc-mode. (Thu, 08 Sep 2016 23:42:01 GMT) Full text and rfc822 format available.

Message #8 received at 10590 <at> debbugs.gnu.org (full text, mbox):

From: Alex <agrambot <at> gmail.com>
To: Matt Renaud <mrenaud92 <at> gmail.com>
Cc: 10590 <at> debbugs.gnu.org
Subject: Re: bug#10590: c++-mode closing nested template angle braces breaks
 font-lock, indentation and show-paren-mode.
Date: Thu, 08 Sep 2016 17:41:14 -0600
close 10590 25.1
quit

Matt Renaud <mrenaud92 <at> gmail.com> writes:

> Emacs Version: 24.0.92.2
>
> When writing C++ code with nested templates, putting two (or more) closing angle braces together causes the font-lock, show-paren-mode and indentation to break. Positioning point on any of the closing parentheses fails to show the matching
> opening brace which makes template meta-programs difficult to read. Any nested templates will cause this. The following is a simple example showing the 2 cases:
>
> template <typename T = std::vector<int>>
> struct foo // Indentation broken here...
> {
> };
>
> int main()
> {
> std::vector<std::vector<int>> vv_int; // Font-lock broken here...
>
> return 0;
> }

This appears to have been fixed in 25.1.




bug marked as fixed in version 25.1, send any further explanations to 10590 <at> debbugs.gnu.org and Matt Renaud <mrenaud92 <at> gmail.com> Request was from Alex <agrambot <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 08 Sep 2016 23:42:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 Oct 2016 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 261 days ago.

Previous Next


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