bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [address@hidden: font-loc "case" bug]


From: Alan Mackenzie
Subject: Re: [address@hidden: font-loc "case" bug]
Date: Thu, 29 Dec 2005 11:58:38 +0000 (GMT)

Hi, Michael and Richard!

Apologies for not replying sooner - Yuletide, and all that.

On Thu, 15 Dec 2005, Richard M. Stallman wrote:

>Please DTRT and ack.

>------- Start of forwarded message -------
>To: bug-gnu-emacs@gnu.org
>From: Michael Kleber <kleber@broad.mit.edu>
>Date: Wed, 14 Dec 2005 14:55:02 -0500
>X-Virus-Scanned: amavisd-new at broad.mit.edu
>X-Mailman-Approved-At: Wed, 14 Dec 2005 16:56:40 -0500
>Subject: font-loc "case" bug
>Sender: bug-gnu-emacs-bounces+rms=gnu.org@gnu.org
>X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python
>X-Spam-Level: 
>X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63

>In emacs 21.3.1, C font-lock coloring is disrupted when the
>word "case" appears in a comment or in quotes.  For example,
>in the following file:

>int main() {
>   int i /* this is just fine */ = 1;
>   int j /* but it miscolors this case */ = 2;
>}

>the number "2" is colored as a case label, but is colored
>correctly if the last word in the comment is changed to "casey".

Yes, I get that too!  It's a strange one.

However, I'd rather not spend time debugging this - it happens in
CC Mode 5.28 (the version which ships with Emacs 21.n), and since then
the font locking for CC Mode has been completely rewritten, now being
incorporated into CC Mode itself.

It sounds like this bug isn't really bothering you too much, anyway.  But
thanks, thanks, and thanks for taking the trouble to report it!

The current version of CC Mode is now 5.31.1:  It can be downloaded from
<http://cc-mode.sourceforge.net/release.php>.  This little bug with the
font locking _doesn't_ happen any more in this version.

>- --Michael Kleber

-- 
Alan Mackenzie (Munich, Germany)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]