unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alan Mackenzie <acm@muc.de>
Cc: Eli Zaretskii <eliz@gnu.org>, yu jie <yujie052@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: ntemacs hangs when openning the attached file
Date: Thu, 22 May 2008 00:42:12 -0400	[thread overview]
Message-ID: <jwvr6bvkl2l.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20080520161303.GC3729@muc.de> (Alan Mackenzie's message of "Tue,  20 May 2008 16:13:03 +0000")

>> This seems not to be related to fontification, but rather to something
>> that c-neutralize-syntax-in-CPP does during C Mode initialization.

> It's just that c-neutralize-syntax-in-CPP takes a long time in such a
> large buffer.  However, it would take just as long if it were split into
> several smaller buffers.

> c-neutralize-syntax-in-CPP is a newish function which counteracts
> problems cause by things like:

>     #define RBRACE }

> .  The answer would seem to be calling the function lazily or in the
> background, a bit like jit-lock does for font locking.

> Stefan, I think you mentioned a long time ago that jit could be used for
> things other than font locking, but I can't find the thread.  Any clues?

Not sure what you want to know.  You can use jit-lock-register, tho it's
not clear whether it does what you want.


        Stefan




  reply	other threads:[~2008-05-22  4:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <42b562540805062101s3e79eecel5ddc5b19821deda2@mail.gmail.com>
2008-05-07  8:48 ` ntemacs hangs when openning the attached file Eli Zaretskii
2008-05-20 16:13   ` Alan Mackenzie
2008-05-22  4:42     ` Stefan Monnier [this message]
2008-05-23 21:01   ` Alan Mackenzie
2008-05-23 21:36     ` Stefan Monnier
2008-05-24 13:16       ` Alan Mackenzie
2008-05-24  8:18     ` Eli Zaretskii
2008-05-24 13:17       ` Alan Mackenzie
2008-05-07 17:34 ` 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=jwvr6bvkl2l.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=yujie052@gmail.com \
    /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).