* Re: [kleber@broad.mit.edu: font-loc "case" bug]
[not found] <E1EmwaU-00075l-PC@fencepost.gnu.org>
@ 2005-12-29 11:58 ` Alan Mackenzie
2005-12-30 2:18 ` Richard M. Stallman
0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2005-12-29 11:58 UTC (permalink / raw)
Cc: bug-cc-mode, bug-gnu-emacs
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)
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread