GNU bug report logs - #6952
jit-lock with default, small chunk-size causing incorrect fontification in cc-mode

Previous Next

Packages: cc-mode, emacs;

Reported by: Daniel Colascione <dan.colascione <at> gmail.com>

Date: Mon, 30 Aug 2010 23:52:01 UTC

Severity: normal

Tags: unreproducible

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: Stefan Kangas <stefan <at> marxist.se>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#6952: closed (jit-lock with default, small chunk-size causing
 incorrect fontification in cc-mode)
Date: Thu, 26 Sep 2019 11:13:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 26 Sep 2019 13:11:39 +0200
with message-id <CADwFkmk7pvwXzwZ=R6Xz9BSkqQzBddf1buK1N_FXzc=8iHpEUw <at> mail.gmail.com>
and subject line Re: bug#6952: jit-lock with default, small chunk-size causing incorrect fontification in cc-mode
has caused the debbugs.gnu.org bug report #6952,
regarding jit-lock with default, small chunk-size causing incorrect fontification in cc-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
6952: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6952
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Daniel Colascione <dan.colascione <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: jit-lock with default, small chunk-size causing incorrect
	fontification in cc-mode
Date: Mon, 30 Aug 2010 16:52:45 -0700
[Message part 3 (text/plain, inline)]
I've attached a file that demonstrates incorrect fontification with
cc-mode and jit-lock used together -- the last function in the file is
not fontified as a function when a file is first visited with
jit-lock-chunk-size equal to its default 512. If I change that to
32768 or change some of the whitespace in the fiile, fontification is
correct again. I've attached the file because the testcase is
whitespace-sensitive.

Presumably, the underlying cause is jit-lock asking cc-mode to start
or stop fontification in an unexpected place.
[foo.c (application/octet-stream, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Stefan Kangas <stefan <at> marxist.se>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 6952-done <at> debbugs.gnu.org, Daniel Colascione <dan.colascione <at> gmail.com>
Subject: Re: bug#6952: jit-lock with default, small chunk-size causing
 incorrect fontification in cc-mode
Date: Thu, 26 Sep 2019 13:11:39 +0200
[Message part 6 (text/plain, inline)]
Noam Postavsky <npostavs <at> gmail.com> writes:

> tags 6952 + unreproducible
> quit
>
> Daniel Colascione <dan.colascione <at> gmail.com> writes:
>
>> I've attached a file that demonstrates incorrect fontification with
>> cc-mode and jit-lock used together -- the last function in the file is
>> not fontified as a function when a file is first visited with
>> jit-lock-chunk-size equal to its default 512.
>
> I can't reproduce this, neither by setting jit-lock-chunk-size to 512,
> nor with the default of 500.  The fontification of that file looks fine.
> Tested from 24.3 to current master (27.0.50).

I can't reproduce this either, so I'm closing this bug report.  If anyone
is still seeing this on a modern Emacs, please re-open.

Best regards,
Stefan Kangas
[Message part 7 (text/html, inline)]

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

Previous Next


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