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: Fri, 10 Feb 2012 09:27:20 -0500 Message-ID: References: <20120125124804.GB3638@acm.acm> <20120125182651.GA3624@acm.acm> <20120204120319.GC3347@acm.acm> <20120207101008.GB3314@acm.acm> <20120208214318.GC31761@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328884060 415 80.91.229.3 (10 Feb 2012 14:27:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 14:27:40 +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 Fri Feb 10 15:27:40 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RvrRr-0007Rt-4Q for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2012 15:27:39 +0100 Original-Received: from localhost ([::1]:55496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvrRq-00066U-J7 for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2012 09:27:38 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvrRf-00065i-VV for emacs-devel@gnu.org; Fri, 10 Feb 2012 09:27:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvrRZ-0006Ry-UH for emacs-devel@gnu.org; Fri, 10 Feb 2012 09:27:27 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:42788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvrRZ-0006Rs-Q4 for emacs-devel@gnu.org; Fri, 10 Feb 2012 09:27:21 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsIAF4oNU9MCqD0/2dsb2JhbABErl1+gQiBcwEFViMQCw4mEhQYDSTBTYkmgjcPCz4MBwgGBAUBAgGDYwUWAgUCBQYDBwECAQIFAgGDUQSISZsPhFo X-IronPort-AV: E=Sophos;i="4.73,396,1325480400"; d="scan'208";a="162474790" Original-Received: from 76-10-160-244.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.244]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 Feb 2012 09:27:20 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 66623594C8; Fri, 10 Feb 2012 09:27:20 -0500 (EST) In-Reply-To: <20120208214318.GC31761@acm.acm> (Alan Mackenzie's message of "Wed, 8 Feb 2012 21:43:18 +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:148426 Archived-At: > + :after-hooks A single lisp form which is evaluated after the mode hooks > + have been run. It should be quoted. Don't quote it. > ! ,@(when after-hooks `(,(eval after-hooks))) And don't call `eval'. Also, I'd move the after-hooks code to after the customize-mark-as-set&message. Stefan