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: Mon, 29 Nov 2021 15:43:22 +0200 Message-ID: <83y257ulfp.fsf@gnu.org> References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> <83bl24yaed.fsf@gnu.org> <87sfvg7l51.fsf@yahoo.com> <83zgpowu23.fsf@gnu.org> <87zgpo5tws.fsf@yahoo.com> <83pmqkwi6r.fsf@gnu.org> <87v90c5su6.fsf@yahoo.com> <83o864wg2a.fsf@gnu.org> <87ilwb68ck.fsf@yahoo.com> <83zgpnunfo.fsf@gnu.org> <87fsrf3xmd.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39183"; 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 Mon Nov 29 14:47:28 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 1mrh0B-000A15-6l for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Nov 2021 14:47:27 +0100 Original-Received: from localhost ([::1]:40512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrh0A-0004lQ-5E for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Nov 2021 08:47:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrgw3-000529-EF for emacs-devel@gnu.org; Mon, 29 Nov 2021 08:43:11 -0500 Original-Received: from [2001:470:142:3::e] (port=42640 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 1mrgw3-0001aG-5S; Mon, 29 Nov 2021 08:43:11 -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=Z9j0a6EWEZgnM4Ig2RInPzpgfc05zJkD+89raO0cdUw=; b=H+bsJZ0UYRya ELuUYcR1KZKoy6Fgce3TX5bfiN2eN4W0zi9oIdBoDwfUwWMKizur9qL7g2aapOsQsXGeAXvOFDfBs Voah9j8d1txKXuMEnJvnHCK/5h5dFAVp19dv3rd33RnU0nUSHjO7XrqhjrF7aqoikRrLz6URml/qk MdbVqLIWa+7Kk+D9LAa1uB/Fuc/irnGvILbMZ7NG0EVBFQa2jQfjeseaNlvmn0dIoRLvk3skWc19x ieXhHgN7PM4kaCA4cziK6/28LZ5J8sLQxeuCpng3ZRcBC9TymN/q6twsUjh2ltzlH1iIYqbJkcBWA NTF3EAyw9TuOqUsJc/vViQ==; Original-Received: from [87.69.77.57] (port=1257 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 1mrgw2-0001Tw-SQ; Mon, 29 Nov 2021 08:43:11 -0500 In-Reply-To: <87fsrf3xmd.fsf@yahoo.com> (message from Po Lu on Mon, 29 Nov 2021 21:22:18 +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:280471 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Mon, 29 Nov 2021 21:22:18 +0800 > > > Second, look at the scrolling code in window.c: under some conditions, > > it decides up front that point will be invisible, and then either > > moves point or modifies the scroll (i.e. the window-start). That, > > too, will have to be revisited and carefully audited. > > Is any of that scrolling code used during redisplay (for instance, if > the window start is changed?) It certainly affects redisplay. It might also be called by redisplay, I don't remember. However, ... > The main use I have for this feature will be in the pixel scrolling > code, which doesn't use any of the normal scrolling commands. ... it makes very little sense to me to introduce such a feature only for the sake of pixel-wise scrolling. We should allow such a mode with all the Emacs commands, not just in pixel-wise scrolling. And anyway, Emacs might call scrolling commands as part of other commands, not just because the user types C-v.