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: Thu, 23 Apr 2015 11:04:43 +0200 Message-ID: <87bnifw6z8.fsf@gnu.org> References: <87a8y0iji1.fsf@gnu.org> <83383r2sb3.fsf@gnu.org> <831tjb2q9z.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429780003 8353 80.91.229.3 (23 Apr 2015 09:06:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2015 09:06:43 +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 Thu Apr 23 11:06:33 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 1YlD5I-0002KC-KE for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 11:06:12 +0200 Original-Received: from localhost ([::1]:39010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlD5H-0007QP-RU for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Apr 2015 05:06:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlD4G-0006Ut-8X for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 05:05:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlD4A-0007WQ-H8 for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 05:05:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlD4A-0007W3-EJ for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 05:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YlD49-00056f-Uk for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 05:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Apr 2015 09:05: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.142977988719601 (code B ref 20404); Thu, 23 Apr 2015 09:05:01 +0000 Original-Received: (at 20404) by debbugs.gnu.org; 23 Apr 2015 09:04:47 +0000 Original-Received: from localhost ([127.0.0.1]:37124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlD3u-000564-Ic for submit@debbugs.gnu.org; Thu, 23 Apr 2015 05:04:46 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:59816) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlD3s-00055v-9r for 20404@debbugs.gnu.org; Thu, 23 Apr 2015 05:04:45 -0400 Original-Received: from thinkpad-t440p (dhcp18.uni-koblenz.de [141.26.71.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 00A981A83C5; Thu, 23 Apr 2015 11:04:43 +0200 (CEST) In-Reply-To: <831tjb2q9z.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 23 Apr 2015 11:38:16 +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:101913 Archived-At: Eli Zaretskii writes: > And here's why: _any_ command that goes through > execute-extended-command will run this code: > > (when suggest-key-bindings > (sit-for (cond > ((zerop (length (current-message))) 0) > ((numberp suggest-key-bindings) suggest-key-bindings) > (t 2)))))) > > The default value of suggest-key-bindings is t, so this means we > _always_ sit-for 2 seconds, unless the echo area shows nothing (a rare > situation in Emacs). When Emacs is parked inside sit-for, it doesn't > become idle, I think for good reasons. So the idle timers will not > run until those 2 sec have expired, or some input becomes available. Oh, yes, this explains things. > And indeed setting suggest-key-bindings to nil causes the buffer > displayed by report-emacs-bug to become fontified almost immediately, > under Tassilo's settings of jit-lock-defer-time. Confirmed. Hm, sometimes I actually like `suggest-key-bindings' namely whenever it tells that I could have used `C-x ' instead of `M-x ...'. But I don't like its suggestions to use `M-x fi-fi' instead of `M-x find-file'. I totally agree that sometimes there should be messages that should stick around for a given amount of time but using `sit-for` to stop the world turning as a whole seems like a bit overkill. Maybe such sticky messages could be shown in the `header-line' and then be removed by a timer. But of course, what should one do if the header-line is already in use? > The upshot of all this is that any command that displays a buffer via > execute-extended-command and also says something in the echo area, > will always delay JIT deferred fontifications (and any other features > that run via idle timers) for at least 2 sec. But how does that explain the occassionally non-fontified compile buffers I get during package upgrades/installs? Those don't go through `execute-extended-command'. But compile.el has some own `sit-for' invocations that might delay timers. Bye, Tassilo