From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redisplay resets vscroll when window start changes Date: Wed, 17 Nov 2021 09:45:24 +0200 Message-ID: <4C42D18C-5A5A-4611-8F54-CF5294F453B1@gnu.org> References: <87k0h9pp7t.fsf.ref@yahoo.com> <87k0h9pp7t.fsf@yahoo.com> <83r1bhsdsn.fsf@gnu.org> <87tugdnf1x.fsf@yahoo.com> <831r3g2rhe.fsf@gnu.org> <87tugcuuoz.fsf@yahoo.com> <87o86kuuek.fsf@yahoo.com> <83r1bg1ay4.fsf@gnu.org> <87zgq4te32.fsf@yahoo.com> <83mtm41afl.fsf@gnu.org> <875yssufhf.fsf@md5i.com> <87czmztynn.fsf@yahoo.com> <83wnl7zcej.fsf@gnu.org> <87sfvvs8rf.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30341"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: mwd@md5i.com To: emacs-devel@gnu.org, Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 17 08:48:14 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnFfy-0007iL-1J for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Nov 2021 08:48:14 +0100 Original-Received: from localhost ([::1]:36050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnFfw-0002i0-MW for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Nov 2021 02:48:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnFdM-00013c-AF for emacs-devel@gnu.org; Wed, 17 Nov 2021 02:45:34 -0500 Original-Received: from [2001:470:142:3::e] (port=51360 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnFdL-0003VX-TE; Wed, 17 Nov 2021 02:45:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Subject:To:From: Date; bh=/dH0HExnWj4+5lbyBAqhIT73cNRIURMLolxv188G19c=; b=pnWsNyk96GJJkk0ouvjV y6d/V8m5yqCqYhf20yQxH6+vxUpAVmZ/wu5PECafGBoUZLqFq7jyyE+QrvFIFMSCZFMSKHqnXfKDh Og7L9LlnBp2aLHVSETkI5ugEKlrIdAcA9BYx4f/1AhlVbL+iYpEGrV76erLEfmkj3DUMxw7CljZoV Gkk4iouxxmEg7txWqgCW48XrNbACy2AdFHBWLqtzsTb2f7HX5pmztQJT2yyWbPqYHHE6xXg8EGOzk 0kL2TWb2ieZdl0lvbJPA2CkLV/etWu+E8bgXV1pKm4vujdcBDoGVHtvE8VjqDHRlihs9bM98iCCw6 aCgGUb7LEzAxxw==; Original-Received: from [2a02:14f:1f9:be9d::404:ffa] (port=58044 helo=[IPv6:::1]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnFdJ-00048y-PP; Wed, 17 Nov 2021 02:45:31 -0500 In-Reply-To: <87sfvvs8rf.fsf@yahoo.com> Autocrypt: addr=eliz@gnu.org; keydata= mQENBF+pf4UBCAC6vjkWLSAsQpe8YIGKLQzNOJx/IjGtCdFF8uzmO5jmME+SD8ROuJN+t5KXVw58 uzu75EFD0vHTY9e+udJ2gkpuy0NnzkFcbumdLLo2ERKCoSctZZRhzKXI5z5cHxCqW0B2ygHRrRLt oNlGID7bAgcgSViT1ptGqTXO7zGVu4Airok7dNzcPtHgns8GlR5YAFX0TvE6oGd0l2VPghNeVJKJ OjrbfhoDxl3ucFpqbqMH8z9HTLDOFpz8UaYYUdJMi3xX6vwTZxI2sM2RRVLUpZyllAkSMI4lln1O OgazM/62DJUs/rKIHKBnF6h3/qsJUjUYXaAHbrXY26mWllAd536lABEBAAG0I0VsaSBaYXJldHNr aWkgKGVsaXopIDxlbGl6QGdudS5vcmc+iQE4BBMBAgAiBQJfqX+FAhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgAAKCRCRwSYvAeuNOYUQB/4/iIKKOG45ijNaRoTvmJJZMvj1S07WQxEm7c5SHEeE QbLOAxB9vESOV7sLueuN3oqEndtzyYt4x1WTSBmHFF7h5fcCMjBs41siOIp5Sj/xD0Bvaa0IKGCR SZ7PAo8Mq3wgajXpTpn9vxE2PmtzA8KdEE0K1+f9pVAfOpUIcCl44rIxLUW352XG0y7iz6c/O6LB 1deOKMiKFctKO7pBti1dJEm1ImewLH3H8uTbwspLOs3EB8xhsESxmTidnze68HX2jt+2EeMgCdki NU+LWbexQZPfIS7+ZmE06ll0v6+Jy7ZdTkCCRypKWTnW7pIFsq/p4kybV8O/kHSV6B4vvQBfuQEN BF X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279611 Archived-At: On November 17, 2021 6:31:32 AM GMT+02:00, Po Lu wro= te: > Eli Zaretskii writes: >=20 > > My suggestion is to implement equivalents of C-n/C-p that do what you > > want, instead of asking for previous/next-line to be able to preserve > > the vscroll, because those commands aren't supposed to support the use > > case you want to support=2E >=20 > Yes, I understand that=2E But the problem is any command that can call > `line-move' will end up resetting the vscroll, which most people don't > expect=2E Since making `line-move' not reset the vscroll is not an > option, a better solution will have to be found, which replacing > previous-line/next-line is not=2E My point is precisely that line-move should not be used for this purpose, = because it and the other 2 functions it calls don't support this use case, = and OTOH include a lot of code logic which implicitly assumes a very differ= ent use case=2E It would be much easier and cleaner to implement what you = need from scratch=2E