From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Unfreezing the display during auto-repeated scrolling. Simpler approach. Date: Mon, 27 Oct 2014 18:51:35 +0200 Message-ID: <83y4s1317s.fsf@gnu.org> References: <83zjcpa11g.fsf@gnu.org> <20141021171403.GB3035@acm.acm> <83oat59ucc.fsf@gnu.org> <20141021183807.GD3035@acm.acm> <20141026124333.GA4397@acm.acm> <83h9yq4w5g.fsf@gnu.org> <20141026200313.GE4397@acm.acm> <20141026221530.GF4397@acm.acm> <20141027142801.GC2771@acm.acm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1414428748 21748 80.91.229.3 (27 Oct 2014 16:52:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2014 16:52:28 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 27 17:52:21 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XinWh-0006zg-C9 for ged-emacs-devel@m.gmane.org; Mon, 27 Oct 2014 17:52:15 +0100 Original-Received: from localhost ([::1]:34909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XinWh-000256-1S for ged-emacs-devel@m.gmane.org; Mon, 27 Oct 2014 12:52:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XinWJ-00020K-0M for emacs-devel@gnu.org; Mon, 27 Oct 2014 12:51:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XinWD-0003jJ-Ti for emacs-devel@gnu.org; Mon, 27 Oct 2014 12:51:50 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:39188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XinWD-0003j8-Lo for emacs-devel@gnu.org; Mon, 27 Oct 2014 12:51:45 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NE400L003VNNL00@mtaout25.012.net.il> for emacs-devel@gnu.org; Mon, 27 Oct 2014 18:47:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NE400BJY3YLBWA0@mtaout25.012.net.il>; Mon, 27 Oct 2014 18:47:09 +0200 (IST) In-reply-to: <20141027142801.GC2771@acm.acm> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.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:175896 Archived-At: > Date: Mon, 27 Oct 2014 14:28:01 +0000 > Cc: Eli Zaretskii , emacs-devel@gnu.org > From: Alan Mackenzie > > > Please take a look at what jit-lock-defer does. > > It sets a non-nil fontified text-property without doing any > fontification (yet). I think you're suggesting "binding" > jit-lock-defer over the scroll operation, thus inhibiting fontification. > > I've had a simpler idea: bind fontification-functions to nil over the > scroll operation. This avoids many of the pitfalls of my last patch, and > can be perfectly specific to scrolling by whole screens and nothing else, > and is much simpler and less intrusive. It works well. > > Here's a patch, which does precisely that. Comments welcome, as always: If jit-lock-defer-time produces the desired effect, I see no need to have yet another separate knob to achieve the same effect just during scrolling.