From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Can we make set_point_both less expensive? Date: Fri, 20 Mar 2015 20:53:53 +0100 Message-ID: <550C7AD1.4080806@gmx.at> 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> <83zj77vh87.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1426881289 27849 80.91.229.3 (20 Mar 2015 19:54:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2015 19:54:49 +0000 (UTC) Cc: dancol@dancol.org, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 20 20:54:41 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 1YZ2zw-0008FA-6t for ged-emacs-devel@m.gmane.org; Fri, 20 Mar 2015 20:54:24 +0100 Original-Received: from localhost ([::1]:45522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ2zv-0002R1-EO for ged-emacs-devel@m.gmane.org; Fri, 20 Mar 2015 15:54:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ2zh-0002Qe-Mx for emacs-devel@gnu.org; Fri, 20 Mar 2015 15:54:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZ2zg-00085W-Io for emacs-devel@gnu.org; Fri, 20 Mar 2015 15:54:09 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:58869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZ2zc-00084s-Lv; Fri, 20 Mar 2015 15:54:04 -0400 Original-Received: from [188.22.44.177] ([188.22.44.177]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MU0U9-1YzcOu30pV-00Qnsb; Fri, 20 Mar 2015 20:54:01 +0100 In-Reply-To: <83zj77vh87.fsf@gnu.org> X-Provags-ID: V03:K0:M34ru9ftO7KSS0Wi0cUoCgGqQlGEe33uhEFUqpE1W+sUB4fWul9 IWsdLsV6uMaEz1VZPZ8ByiL6dDCJxMdyAMr2pB6gWRWXqgzMk6mc4CJqGPnsWVG8KsOm3m6 QigenShXRZ1KZXu5NYcvpVopR0QvfXi2WAtkMiv608uhnSoDPTCCJs11ND9WfbQIXsH548Y OiseMlJplZiZ5xtjZm99Q== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.20 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:184053 Archived-At: >> 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. But when redisplay moves point (usually after scrolling the window) it could check whether it would end up in an intangible region and adjust point accordingly. Why would this be such a big deal? > And cursor is always set where point is, we have no other strategy for > positioning the cursor. After `scroll-left'? > So I don't see how handling intangible could > be the job of redisplay, without significant changes. Isn't adjust_point_for_property some sort of redisplay revisited? >> 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. They would determine the position of the cursor when an intangible area starts or ends within them. martin