From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: ntemacs hangs when openning the attached file Date: Thu, 22 May 2008 00:42:12 -0400 Message-ID: References: <42b562540805062101s3e79eecel5ddc5b19821deda2@mail.gmail.com> <20080520161303.GC3729@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211431384 12744 80.91.229.12 (22 May 2008 04:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2008 04:43:04 +0000 (UTC) Cc: Eli Zaretskii , yu jie , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 22 06:43:39 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jz2e5-0007TJ-P6 for ged-emacs-devel@m.gmane.org; Thu, 22 May 2008 06:43:18 +0200 Original-Received: from localhost ([127.0.0.1]:36893 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz2dL-0006Y9-FM for ged-emacs-devel@m.gmane.org; Thu, 22 May 2008 00:42:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jz2dG-0006Xz-6I for emacs-devel@gnu.org; Thu, 22 May 2008 00:42:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jz2dC-0006Xa-Ss for emacs-devel@gnu.org; Thu, 22 May 2008 00:42:23 -0400 Original-Received: from [199.232.76.173] (port=36269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz2dC-0006XX-J0 for emacs-devel@gnu.org; Thu, 22 May 2008 00:42:22 -0400 Original-Received: from 206-248-174-248.dsl.teksavvy.com ([206.248.174.248]:52447 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jz2d8-0003aT-KC; Thu, 22 May 2008 00:42:18 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 60E54B41CA; Thu, 22 May 2008 00:42:12 -0400 (EDT) In-Reply-To: <20080520161303.GC3729@muc.de> (Alan Mackenzie's message of "Tue, 20 May 2008 16:13:03 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97500 Archived-At: >> 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