GNU bug report logs - #20208
25.0.50; c-mode: incorrect fontification of simple enums (again)

Previous Next

Packages: cc-mode, emacs;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Thu, 26 Mar 2015 20:07:02 UTC

Severity: normal

Found in version 25.0.50

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 20208 in the body.
You can then email your comments to 20208 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#20208; Package emacs. (Thu, 26 Mar 2015 20:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dima Kogan <dima <at> secretsauce.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 26 Mar 2015 20:07:02 GMT) Full text and rfc822 format available.

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

From: Dima Kogan <dima <at> secretsauce.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; c-mode: incorrect fontification of simple enums (again)
Date: Thu, 26 Mar 2015 13:07:20 -0700
[Message part 1 (text/plain, inline)]
Hi. This is very similar to bug 19669. I'm running emacs from revision
6e1fac9, which has the fix to bug 19969: revision d69e9f1c.

I'm opening a file tst.hh (attached). Then "emacs -Q -nw tst.hh". Then
any interactive command (M-x, for instance). The result has
fontification issues, as shown by the attached image.


[tst.hh (text/x-c++hdr, inline)]
enum class error_t
{
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -1,
	xxxxxxxxxxxxxxxxxxxxxxxxx							  = -3,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx		  = -4,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -5,
	xxxxxxxxxxxxxxxxxxxxxxxxx							  = -9,
	xxxxxxxxxxxxxxxxxxxxxxxxxx							  = -10,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -11,
	xxxxxxxxxxxxxxxxxxxxxxx								  = -14,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -15,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -16,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = -18,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -19,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -20,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -21,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -22,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -25,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -27,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -31,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -32,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -33,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -36,
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -48,
};
[enum_fontification_issue.png (image/png, attachment)]

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

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

From: Alex <agrambot <at> gmail.com>
To: Dima Kogan <dima <at> secretsauce.net>
Cc: 20208 <at> debbugs.gnu.org
Subject: Re: bug#20208: 25.0.50;
 c-mode: incorrect fontification of simple enums (again)
Date: Thu, 08 Sep 2016 17:51:14 -0600
close 20208 25.1
quit

Dima Kogan <dima <at> secretsauce.net> writes:

> Hi. This is very similar to bug 19669. I'm running emacs from revision
> 6e1fac9, which has the fix to bug 19969: revision d69e9f1c.
>
> I'm opening a file tst.hh (attached). Then "emacs -Q -nw tst.hh". Then
> any interactive command (M-x, for instance). The result has
> fontification issues, as shown by the attached image.
>
>
> enum class error_t
> {
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -1,
> 	xxxxxxxxxxxxxxxxxxxxxxxxx							  = -3,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx		  = -4,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -5,
> 	xxxxxxxxxxxxxxxxxxxxxxxxx							  = -9,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxx							  = -10,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -11,
> 	xxxxxxxxxxxxxxxxxxxxxxx								  = -14,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -15,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -16,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx = -18,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx					  = -19,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -20,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -21,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -22,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -25,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -27,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx			  = -31,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx				  = -32,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -33,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -36,
> 	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx						  = -48,
> };

This appears to have been fixed in 25.1.




bug marked as fixed in version 25.1, send any further explanations to 20208 <at> debbugs.gnu.org and Dima Kogan <dima <at> secretsauce.net> Request was from Alex <agrambot <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 08 Sep 2016 23:52: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:04 GMT) Full text and rfc822 format available.

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

Previous Next


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