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: Aborting display. Is this possible? Date: Tue, 21 Oct 2014 22:42:04 +0300 Message-ID: <83fveh9pmb.fsf@gnu.org> References: <20141020110949.GA2947@acm.acm> <8338aidbcq.fsf@gnu.org> <20141020185757.GD2947@acm.acm> <83lhoabl2x.fsf@gnu.org> <20141020210819.GE2947@acm.acm> <87y4s9rgi9.fsf@fencepost.gnu.org> <83zjcpa11g.fsf@gnu.org> <20141021171403.GB3035@acm.acm> <83oat59ucc.fsf@gnu.org> <20141021183807.GD3035@acm.acm> <83iojd9sbe.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1413920560 12852 80.91.229.3 (21 Oct 2014 19:42:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2014 19:42:40 +0000 (UTC) Cc: dak@gnu.org, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: acm@muc.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 21 21:42:35 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 1XgfKD-0000B5-Bd for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2014 21:42:33 +0200 Original-Received: from localhost ([::1]:53207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgfKC-0004qt-VP for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2014 15:42:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgfK2-0004f8-Kg for emacs-devel@gnu.org; Tue, 21 Oct 2014 15:42:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgfJx-0008Ts-CI for emacs-devel@gnu.org; Tue, 21 Oct 2014 15:42:22 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:33540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgfJr-0008OX-9z; Tue, 21 Oct 2014 15:42:11 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NDT00G007T68000@mtaout27.012.net.il>; Tue, 21 Oct 2014 22:37:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDT00DNA7TSLH20@mtaout27.012.net.il>; Tue, 21 Oct 2014 22:37:04 +0300 (IDT) In-reply-to: <83iojd9sbe.fsf@gnu.org> 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.183 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:175670 Archived-At: > Date: Tue, 21 Oct 2014 21:43:49 +0300 > From: Eli Zaretskii > Cc: dak@gnu.org, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org > > > Instead, it would assume all characters without a `face' property > > had the Foo property. > > Based on what? Just on the fact that there's some input? And who and > how will set and reset that option, and under what circumstances? Btw, if all you want is prevent unnecessary fontification of the parts that will not be displayed, there's a much easier way: use a command that moves point directly, rather than indirectly by moving the window-start. IOW, bind C-v to a function that moves point N physical lines, where N is computed from the window height. That's it! no fancy new options and redisplay changes are necessary. Scrolling is more expensive because it tries to be accurate: it tries to move the text by almost a full screen, with a small overlap whose size is known in advance and customizable to users' content. If you are willing to accept inaccuracy, just move point instead.