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: Allowing point to be outside the window? Date: Sat, 25 Dec 2021 09:07:00 +0200 Message-ID: <83v8zdqi23.fsf@gnu.org> References: <87ilwd7zaq.fsf.ref@yahoo.com> <83o864wg2a.fsf@gnu.org> <87ilwb68ck.fsf@yahoo.com> <83zgpnunfo.fsf@gnu.org> <87fsrf3xmd.fsf@yahoo.com> <83y257ulfp.fsf@gnu.org> <8735ne4e0e.fsf@yahoo.com> <87czmcvcs1.fsf@yahoo.com> <83sfv85y36.fsf@gnu.org> <87v904tsvv.fsf@yahoo.com> <83h7bo5m1x.fsf@gnu.org> <87ilw3ubfp.fsf@yahoo.com> <83h7bn4e55.fsf@gnu.org> <877dcipjmk.fsf@yahoo.com> <83mtld254e.fsf@gnu.org> <87lf0xjgxu.fsf@yahoo.com> <83ilw0zg38.fsf@gnu.org> <87mtlbgajq.fsf@yahoo.com> <83czm7vx0s.fsf@gnu.org> <87mtlad3sv.fsf@yahoo.com> <83mtlaurxj.fsf@gnu.org> <87fsqh9o7s.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36644"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 25 08:10:48 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 1n11CZ-0009MU-Md for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Dec 2021 08:10:47 +0100 Original-Received: from localhost ([::1]:40488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n11CX-0001fu-Ij for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Dec 2021 02:10:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n118l-0000S2-PW for emacs-devel@gnu.org; Sat, 25 Dec 2021 02:06:51 -0500 Original-Received: from [2001:470:142:3::e] (port=39622 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 1n118l-00089F-9c; Sat, 25 Dec 2021 02:06:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sOeFlzO1TRKzQGyff8GzYNjluDhpbFsgwzaB1E4VUcU=; b=CZZu3X9QKIhf 6qIc4Nqs3FxCkoPxXx5+t7nDl4qltcGn1lZ8O7hXLzh/7u7SLQsTfMK9FTlVASJvzFK4yLCclXhOD 1jvvNFDZck941MHb10noqvHGa33Pi3XIHMyaMb3d/SKSo9BgYUaIMAJrCdkS68JmmFa5W9/eJ/6BB FpcxqcfNulgapOYHt0zCDPiT47c5lJh1rNJgmQfLfbCv3WFy+n5BubsjjmjE2SpDtpCgR5s1RR5/4 Y/ZvGmClVE9mdpo50636YrEoFzhuUOoSxT9A7+DeUItyMb7IvVpXIRy0ATkzHKRcghcCzEcpw3DIV A0b3ieWtY1cscOFtDsTeTQ==; Original-Received: from [87.69.77.57] (port=1548 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n118j-0001OV-9M; Sat, 25 Dec 2021 02:06:51 -0500 In-Reply-To: <87fsqh9o7s.fsf@yahoo.com> (message from Po Lu on Sat, 25 Dec 2021 14:45:59 +0800) 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:283187 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Sat, 25 Dec 2021 14:45:59 +0800 > > Eli Zaretskii writes: > > > I already provided an example where this could not be what users > > expect: some command inserts text before the window-start, which > > causes the text shown in the window to move if we use the same > > window-start position. Now, window-start is a marker, so > > theoretically we could use the same marker with the buffer position > > updated due to the insertion, in which case the stuff displayed in the > > window may stay unchanged. > > > But is this what users will expect? And if this is not what users > > expect, i.e. if we will need to recompute window-start anew in that > > case, we cannot use the "recenter around point" fallback. Likewise > > with bringing point into the view: will this be what users expect in > > the described situation? > > To be completely clear, the "recenter around point" fallback you allude > to is the code under the `recenter' label in `redisplay_window', > correct? Yes.