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: Can we make set_point_both less expensive? Date: Fri, 20 Mar 2015 17:08:56 +0200 Message-ID: <83zj77vh87.fsf@gnu.org> References: <5505E34C.4000106@dancol.org> <838uex1u1m.fsf@gnu.org> <8361a029p2.fsf@gnu.org> <83vbi0zukw.fsf@gnu.org> <55080104.9070606@gmx.at> <5508800E.3070600@gmx.at> <55092AE0.1080206@gmx.at> <5509CC67.5010207@gmx.at> <550A7FFB.7040502@gmx.at> <550BD579.9040804@gmx.at> <550C3335.4070405@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1426864170 20379 80.91.229.3 (20 Mar 2015 15:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2015 15:09:30 +0000 (UTC) Cc: dancol@dancol.org, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 20 16:09:20 2015 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 1YYyY4-0007RW-5S for ged-emacs-devel@m.gmane.org; Fri, 20 Mar 2015 16:09:20 +0100 Original-Received: from localhost ([::1]:44280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYyY3-0006Rj-Ey for ged-emacs-devel@m.gmane.org; Fri, 20 Mar 2015 11:09:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYyXq-0006RQ-7I for emacs-devel@gnu.org; Fri, 20 Mar 2015 11:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYyXl-0006B3-AY for emacs-devel@gnu.org; Fri, 20 Mar 2015 11:09:06 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYyXl-0006Au-28 for emacs-devel@gnu.org; Fri, 20 Mar 2015 11:09:01 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NLI00M00NB8LH00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 20 Mar 2015 17:08:59 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLI00M6ONEYHV80@a-mtaout21.012.net.il>; Fri, 20 Mar 2015 17:08:59 +0200 (IST) In-reply-to: <550C3335.4070405@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:184042 Archived-At: > Date: Fri, 20 Mar 2015 15:48:21 +0100 > From: martin rudalics > CC: Eli Zaretskii , dancol@dancol.org, emacs-devel@gnu.org > > > Implement a new `cursor-intangible' property, by having p-r-f move point > > away from text with that property. > > Strictly spoken I see no reason why the display engine should not handle > that property by itself. Redisplay never moves point, except when it was forced to keep a specific window-start position. In all other cases, it scrolls the display, but leave point intact. And cursor is always set where point is, we have no other strategy for positioning the cursor. So I don't see how handling intangible could be the job of redisplay, without significant changes. > Someone would have to handle the scroll margins too when determining > on which side of the area to move point. Scroll margins don't cause point movement; they cause movement of text wrt the window.