From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Aborting display. Is this possible? Date: Sun, 19 Oct 2014 16:32:38 +0200 Organization: Organization?!? Message-ID: <87siikruyh.fsf@fencepost.gnu.org> References: <20141019141712.GB3197@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413729204 13340 80.91.229.3 (19 Oct 2014 14:33:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Oct 2014 14:33:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 19 16:33:17 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 1XfrXo-0004eW-KG for ged-emacs-devel@m.gmane.org; Sun, 19 Oct 2014 16:33:16 +0200 Original-Received: from localhost ([::1]:40256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfrXo-0000nr-4A for ged-emacs-devel@m.gmane.org; Sun, 19 Oct 2014 10:33:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfrXX-0000nd-EE for emacs-devel@gnu.org; Sun, 19 Oct 2014 10:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfrXR-0001oI-Lu for emacs-devel@gnu.org; Sun, 19 Oct 2014 10:32:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfrXR-0001nJ-GA for emacs-devel@gnu.org; Sun, 19 Oct 2014 10:32:53 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XfrXO-0004WT-H5 for emacs-devel@gnu.org; Sun, 19 Oct 2014 16:32:50 +0200 Original-Received: from x2f44eba.dyn.telefonica.de ([2.244.78.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Oct 2014 16:32:50 +0200 Original-Received: from dak by x2f44eba.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Oct 2014 16:32:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: x2f44eba.dyn.telefonica.de X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:lNkj362Ed7BvM8sQqG2w+Sc9tqw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:175561 Archived-At: Alan Mackenzie writes: > Why? Better to handle a user auto-repeating on the PageDown key. On > my system, auto-repeat is around 35-40 characters per second, on a > window with 65 lines. In my favourite mode, display can not keep up. > If I set redisplay-dont-pause to nil and hold down PageDown, what the > user sees is frozen for several seconds whilst display determines the > display of every intermediate buffer position (which isn't going to > get displayed anyway) before finally reaching point. > > Would it be possible to enhance display such that incoming input would > abort the current display operation? How would Emacs figure out just how much "a screenful" of text is when it is not allowed to lay out the screen? Where is PageDown going to end up? One possible way to deal with this is not to read characters while redisplay is being processed: a reasonably well-programmed input stack will throttle autorepeat while it has unconsumed characters. Of course, that may not be feasible depending on how Emacs does C-g processing. -- David Kastrup