From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Unfreezing the display during auto-repeated scrolling. Simpler approach. Date: Mon, 24 Nov 2014 16:00:22 +0000 Message-ID: <20141124160022.GA2876@acm.acm> References: <83oasszn9e.fsf@gnu.org> <20141121154420.GA24582@acm.acm> <87vbm6z1lc.fsf@thinkpad-t440p.tsdh.org> <20141123104038.GA3542@acm.acm> <87egstaehk.fsf@thinkpad-t440p.tsdh.org> <20141123220441.GA3628@acm.acm> <87sih8x25d.fsf@thinkpad-t440p.tsdh.org> <87fvd84xws.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1416845091 8027 80.91.229.3 (24 Nov 2014 16:04:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Nov 2014 16:04:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 24 17:04:44 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 1Xsw84-0001dI-7U for ged-emacs-devel@m.gmane.org; Mon, 24 Nov 2014 17:04:44 +0100 Original-Received: from localhost ([::1]:53324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xsw83-00042n-Ms for ged-emacs-devel@m.gmane.org; Mon, 24 Nov 2014 11:04:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xsw4T-0006Q9-Uj for emacs-devel@gnu.org; Mon, 24 Nov 2014 11:01:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xsw4N-0005eD-Ez for emacs-devel@gnu.org; Mon, 24 Nov 2014 11:01:01 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:54757 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xsw4M-0005ds-T9 for emacs-devel@gnu.org; Mon, 24 Nov 2014 11:00:55 -0500 Original-Received: (qmail 97285 invoked by uid 3782); 24 Nov 2014 16:00:50 -0000 Original-Received: from acm.muc.de (pD9519E6C.dip0.t-ipconnect.de [217.81.158.108]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 24 Nov 2014 17:00:49 +0100 Original-Received: (qmail 2918 invoked by uid 1000); 24 Nov 2014 16:00:22 -0000 Content-Disposition: inline In-Reply-To: <87fvd84xws.fsf@fencepost.gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 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:178180 Archived-At: Good evening, David. On Mon, Nov 24, 2014 at 12:53:55PM +0100, David Kastrup wrote: > Tassilo Horn writes: > > Alan Mackenzie writes: > >> It's CC Mode's fontification, rather than the display engine, which is > >> slow here. But in a large window, even Emacs Lisp Mode can only just > >> keep up: On my 2.6 GHz Athlon II, with a 66 line window, and the > >> keyboard auto-repeating every 0.024s, fontifying and displaying a > >> screen took ~0.018s. There's not a lot of spare time for fancier > >> fontification. > > Indeed. > >>> But still I think the variable's name is a bit misleading. I > >>> expected to see the text that scrolls by black on white, i.e., using > >>> the default face similar to having `jit-lock-defer-time' set to some > >>> non-nil value. But instead the text that scrolls by and is visible > >>> is fontified using the normal font-lock faces. > >> :-). I had quite some trouble coming up with a name for the option. > >> Something like > >> `assume-default-face-for-nondisplayed-screens-in-scrolling' would be > >> more accurate, but a bit of a mouthful. If you've any suggestions for > >> improvement, post them! > > Maybe something like `font-lock-omit-nondisplayed-screens-on-scoll'? > font-lock-preempt-when-scrolling That's brilliant! Though I think preempt-font-lock-when-scrolling would be better still, since the variable isn't part of the font-lock package. > -- > David Kastrup -- Alan Mackenzie (Nuremberg, Germany).