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: First fontification of a buffer happens before font lock is fully initialised. Date: Wed, 25 Jan 2012 12:46:04 -0500 Message-ID: References: <20120125124804.GB3638@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327513595 21200 80.91.229.12 (25 Jan 2012 17:46:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 17:46:35 +0000 (UTC) Cc: Hannu Koivisto , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 25 18:46:30 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rq6vN-00068j-1S for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2012 18:46:21 +0100 Original-Received: from localhost ([::1]:49892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6vM-0006DK-Hq for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2012 12:46:20 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6vD-0006C4-17 for emacs-devel@gnu.org; Wed, 25 Jan 2012 12:46:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq6v8-0004yF-Ou for emacs-devel@gnu.org; Wed, 25 Jan 2012 12:46:10 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:58608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6v8-0004yB-Ma for emacs-devel@gnu.org; Wed, 25 Jan 2012 12:46:06 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAJY+IE9soXGu/2dsb2JhbABDrkGBBoFyAQEEAVYjBQsLDiYSFBgNJIgPuCiJKwIBBQIFBhYEAgIBAgGDWAEJBRAGgzUEiD+ad4RX X-IronPort-AV: E=Sophos;i="4.71,569,1320642000"; d="scan'208";a="158939194" Original-Received: from 108-161-113-174.dsl.teksavvy.com (HELO pastel.home) ([108.161.113.174]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Jan 2012 12:46:05 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C4FE75905C; Wed, 25 Jan 2012 12:46:04 -0500 (EST) In-Reply-To: <20120125124804.GB3638@acm.acm> (Alan Mackenzie's message of "Wed, 25 Jan 2012 12:48:04 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147921 Archived-At: > This situation was found and analysed by Hannu Koivisto after CC Mode > crashed for this reason on a C++ buffer. Why it doesn't happen for > every CC Mode buffer is not yet clear. I think the behavior depends on the use of font-lock-support-mode. With jit-lock, fontification takes place after running the mode-hook, whereas without it, fontification takes place before. Stefan