all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dan.colascione@gmail.com>
To: 6952@debbugs.gnu.org
Subject: bug#6952: jit-lock with default, small chunk-size causing incorrect fontification in cc-mode
Date: Mon, 30 Aug 2010 16:52:45 -0700	[thread overview]
Message-ID: <AANLkTimUVXLtUNOGgoJ=f7XhuxvyOqKD40CO7C5Zj_Q_@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]

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.

[-- Attachment #2: foo.c --]
[-- Type: application/octet-stream, Size: 510 bytes --]

                                
                        
                    
                   
                        
                   

type
abcabcabcabcabcabcabc (
              typetypetypety paramparampa,
              typet* paramparamparam);

type
dsflkajfklafjdaslkfjasfdd (
              typetypetypety paramparampa,
              typet* paramparamparam);

type
vcxkzvjxcdflasfdsafdt (
         typetypetypetypetypet param,
         typet paramparamp,
         typet* paramparamparampa
    );


             reply	other threads:[~2010-08-30 23:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30 23:52 Daniel Colascione [this message]
2010-08-31  8:29 ` bug#6952: jit-lock with default, small chunk-size causing incorrect fontification in cc-mode Stefan Monnier
2018-06-29 23:05 ` Noam Postavsky
2019-09-26 11:11 ` Stefan Kangas

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

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

  git send-email \
    --in-reply-to='AANLkTimUVXLtUNOGgoJ=f7XhuxvyOqKD40CO7C5Zj_Q_@mail.gmail.com' \
    --to=dan.colascione@gmail.com \
    --cc=6952@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.