From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#20404: 25.0.50; Sometimes no fontification with jit-lock-defer-time Date: Wed, 22 Apr 2015 22:32:14 +0200 Message-ID: <87y4ljgb01.fsf_-_@gnu.org> References: <87a8y0iji1.fsf@gnu.org> <837ft44fnf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429734805 13128 80.91.229.3 (22 Apr 2015 20:33:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Apr 2015 20:33:25 +0000 (UTC) Cc: 20404@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 22 22:33:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yl1Ka-0005Zb-AK for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Apr 2015 22:33:12 +0200 Original-Received: from localhost ([::1]:36957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yl1KZ-0001h2-Kz for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Apr 2015 16:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yl1KV-0001gw-AL for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2015 16:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yl1KQ-0005MR-8y for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2015 16:33:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yl1KQ-0005ML-6N for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2015 16:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yl1KP-0002qq-Jl for bug-gnu-emacs@gnu.org; Wed, 22 Apr 2015 16:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Apr 2015 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20404-submit@debbugs.gnu.org id=B20404.142973474110907 (code B ref 20404); Wed, 22 Apr 2015 20:33:01 +0000 Original-Received: (at 20404) by debbugs.gnu.org; 22 Apr 2015 20:32:21 +0000 Original-Received: from localhost ([127.0.0.1]:36817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yl1Jk-0002pr-Jo for submit@debbugs.gnu.org; Wed, 22 Apr 2015 16:32:20 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38040) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yl1Ji-0002pi-0c for 20404@debbugs.gnu.org; Wed, 22 Apr 2015 16:32:18 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C3E28206A3 for <20404@debbugs.gnu.org>; Wed, 22 Apr 2015 16:32:17 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 22 Apr 2015 16:32:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=GCcmwgYwBBKy7kLboyMl8bqXQPo=; b=IVi3s 7uk9U4oYVOG55bgfiQTWxLSx1L0qbbf7icWOk+S6D+wAv26FzH7M61sXoWn9bu1R gkQpailmKim++O1AbEIAj4YvLsBjHFaYB/arwO0th+IEwFavXGFJmlef/XmJwQS2 pIOtAwNXkajGku8SEO3zbH0vxxc5QL6nu7lyuw= X-Sasl-enc: +e/bz4iU5paT+K/jelCyHLT2mefiwRh6JuTp4pqZ9wOL 1429734737 Original-Received: from thinkpad-t440p (unknown [2.163.86.218]) by mail.messagingengine.com (Postfix) with ESMTPA id 971A168006C; Wed, 22 Apr 2015 16:32:16 -0400 (EDT) In-Reply-To: <837ft44fnf.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 22 Apr 2015 13:32:36 +0300") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101888 Archived-At: Eli Zaretskii writes: >> Another and even reproducible case is `report-emacs-bug'. It goes >> like this: >> >> 1. emacs -Q >> 2. eval my above settings in *scratch* >> 3. M-x report-emacs-bug >> >> The new message buffer is completely unfontified initially. As soon >> as you move point, font-lock kicks in and the header lines get their >> proper fontification. Or maybe it's the other way round, i.e., the >> buffer is created, then redisplayed, then the fontification takes >> place but no redisplay is performed thereafter. > > Sounds like the idle timer that is started by jit-lock-defer-time > never runs after the buffer is displayed. Indeed, that's the case. Or wait, it eventually runs but much later than `jit-lock-defer-time' defines. > Could it be that it already ran before the display? No. The bug report buffer is displayed first, and then it takes two or three seconds until the first jit-lock kicks in. And then the buffer will be redisplayed and appears fontified. I tested using this code: --8<---------------cut here---------------start------------->8--- (progn (setq jit-lock-defer-time 0.0312 jit-lock-stealth-nice 0.117 jit-lock-stealth-time 0.23) (require 'cl-lib) (defvar i 0) (advice-add 'jit-lock-deferred-fontify :before (lambda () (message "DEFERRED FONTIFY %s" (cl-incf i))))) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo