From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: command to fontify whole buffer? Date: Fri, 23 Sep 2011 00:34:58 +0200 Message-ID: References: <8BFD7E6B15F149EA96503B2768DFD6C5@us.oracle.com> <20110922143341.GB3134@acm.acm> <20110922152701.GC3134@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1316730932 18381 80.91.229.12 (22 Sep 2011 22:35:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2011 22:35:32 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 23 00:35:28 2011 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 1R6rrX-0002uy-TP for ged-emacs-devel@m.gmane.org; Fri, 23 Sep 2011 00:35:24 +0200 Original-Received: from localhost ([::1]:45869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6rrX-0007pM-D0 for ged-emacs-devel@m.gmane.org; Thu, 22 Sep 2011 18:35:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6rrU-0007ov-HA for emacs-devel@gnu.org; Thu, 22 Sep 2011 18:35:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6rrT-0001By-23 for emacs-devel@gnu.org; Thu, 22 Sep 2011 18:35:20 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:46967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6rrS-00013O-Tp for emacs-devel@gnu.org; Thu, 22 Sep 2011 18:35:19 -0400 Original-Received: by mail-fx0-f41.google.com with SMTP id 17so3681171fxh.0 for ; Thu, 22 Sep 2011 15:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=FqWIH4OrfG4zOWC3FRj0ZgiAHMZNNk7xb6QUkhl47Mg=; b=Mxep//6dDQ95RHwYLJJKoDay2XoPR/tYOQpoOmOScI0oFDTJeedkONb1inp9UVaWfw GoinD+q6Tt1fw5WYSISWMVks6MU1LFj/QLTJjaL43OpE02TgHUuH7rcNmfmir6cpKj1A QUKK9na9xSxIMQodMCqf7S/P1Hv3ayrOeyjDE= Original-Received: by 10.223.29.21 with SMTP id o21mr3873905fac.4.1316730918440; Thu, 22 Sep 2011 15:35:18 -0700 (PDT) Original-Received: by 10.152.20.229 with HTTP; Thu, 22 Sep 2011 15:34:58 -0700 (PDT) In-Reply-To: <20110922152701.GC3134@acm.acm> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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:144210 Archived-At: On Thu, Sep 22, 2011 at 17:27, Alan Mackenzie wrote: > Hi, Drew. > > On Thu, Sep 22, 2011 at 07:56:52AM -0700, Drew Adams wrote: >> > > `font-lock-fontify-buffer' doesn't do it. > >> > Are you sure? =C2=A0I thought it did, and looking again at the >> > fine source, it does appear to. > >> No, I only think I'm sure. ;-) Looking at the diagram I do not understand why the buffer does not get fontified by font-lock-fontify-region (when it gets fontified by jit-lock-fontify-now). > ######################################################################### ... > | |->* jit-lock-fontify-now =C2=A0<----------------------------| =C2=A0 | > | =C2=A0 =C2=A0 =C2=A0jit-lock-functions (hook) =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 = | > v =C2=A0 =C2=A0 =C2=A0font-lock-fontify-region =C2=A0<-------------------= -----+---+----| > | =C2=A0 =C2=A0 =C2=A0[font-lock-fontify-region-function] (hook) =C2=A0 = =C2=A0 =C2=A0 =C2=A0 | =C2=A0 | =C2=A0 =C2=A0| > | =C2=A0 =C2=A0* font-lock-default-fontify-region =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 | =C2=A0 =C2=A0| > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 | =C2=A0 =C2= =A0| ...