GNU bug report logs - #23826
25.1.50; Wrong fontification of parameter in c++-mode

Previous Next

Packages: cc-mode, emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Wed, 22 Jun 2016 15:36:02 UTC

Severity: minor

Tags: moreinfo

Found in version 25.1.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ivan Andrus <darthandrus <at> gmail.com>
Subject: bug#23826: closed (Re: bug#23826: 25.1.50; Wrong fontification of
 parameter in c++-mode)
Date: Fri, 04 Oct 2019 04:56:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#23826: 25.1.50; Wrong fontification of parameter in c++-mode

which was filed against the emacs,cc-mode package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 23826 <at> debbugs.gnu.org.

-- 
23826: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23826
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Kangas <stefan <at> marxist.se>
To: Ivan Andrus <darthandrus <at> gmail.com>
Cc: 23826-done <at> debbugs.gnu.org
Subject: Re: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode
Date: Fri, 4 Oct 2019 06:54:47 +0200
Ivan Andrus <darthandrus <at> gmail.com> writes:

> > I can't reproduce this on current master: X has font-lock-type-face and
> > x font-lock-variable-name-face.
> >
> > Are you still seeing this on a recent version of Emacs?
>
> Indeed, this is working for me now.

Thanks for verifying.  Closing this now.

Best regards,
Stefan Kangas

[Message part 3 (message/rfc822, inline)]
From: Ivan Andrus <darthandrus <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.50; Wrong fontification of parameter in c++-mode
Date: Wed, 22 Jun 2016 09:35:45 -0600
From `emacs -Q`, open a buffer in c++-mode and insert the following:

// X is fontified with font-lock-variable-face and x is not fontified
int foo(xml::XmlElement xml, X const& x )
{
    return 0;
}

// Fontified correctly
int bar(XmlElement xml, X const& x )
{
    return 1;
}


Notice that the namespace qualification of XmlElement causes the second
parameter to be incorrectly fontified (or so it appears).

-Ivan



This bug report was last modified 5 years and 294 days ago.

Previous Next


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