unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, bug-gnu-emacs@gnu.org
Subject: Re: [kleber@broad.mit.edu: font-loc "case" bug]
Date: Thu, 29 Dec 2005 11:58:38 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.3.96.1051229113129.1409A-100000@acm.acm> (raw)
In-Reply-To: <E1EmwaU-00075l-PC@fencepost.gnu.org>

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


       reply	other threads:[~2005-12-29 11:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EmwaU-00075l-PC@fencepost.gnu.org>
2005-12-29 11:58 ` Alan Mackenzie [this message]
2005-12-30  2:18   ` [kleber@broad.mit.edu: font-loc "case" bug] Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.96.1051229113129.1409A-100000@acm.acm \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).