From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: hw Newsgroups: gmane.emacs.help Subject: Re: Make scroll-{up, down} move point to {start, end} of newly visible text Date: Tue, 01 Aug 2023 13:28:32 +0200 Message-ID: <9d0b82c3c7bf738c47472fa908ad70daa3e9eced.camel@adminart.net> References: 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="2827"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 01 13:29:35 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qQnZH-0000XK-5A for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 13:29:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQnYP-0003st-97; Tue, 01 Aug 2023 07:28:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQnYN-0003sd-Av for help-gnu-emacs@gnu.org; Tue, 01 Aug 2023 07:28:39 -0400 Original-Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.219]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQnYL-0000L5-Al for help-gnu-emacs@gnu.org; Tue, 01 Aug 2023 07:28:39 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1690889312; cv=none; d=strato.com; s=strato-dkim-0002; b=BDG8ynF0GJsIb/29U+ccrkAc6lNAFo2eS2x8oL4/WcX1cOJgG3QgudjuV+6uDybA+P 6QIn7//TRpVwy6vOEEuZ9ODjtE1K2FNUDMVCRNOXvrxX4FLEkovi+l7OBtZm1AsJ2tCD 9ruB+N7pZpCa7N4mKEb+xXd1ouc20O74CISm7wheBmdvIVxtInf/0cNb3hi1iSDj54dr D3aHyKaiKmQ91hSz8EqBqlXKtNQ4N9T8llDS0XYTiPc3oGfb+5FsWTDOuKIFRyJmBP4L XyCrJ1AeDNOAjZzaNrLy3CG7A6PiFIdlYWSUt/QRb92y7Iry1zPtLFWXWqCxjMY2FTbw GBQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1690889312; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=7HnaM4/F1nX8lRLego5UmuyotPe9UT+2vO3jDlZOJAk=; b=HAboCMEVbSC3go8/gAmJFqgVAlrta642fxY6IhITda38pL0MPf0rKMC86E5MpUXolT JWLmpBDnDxoUlTpIa1nNRU4Md1pWqCb0/PRKJryaQUOU5yegh1oQY5uwT8UxOmjbms6Z bG9/8Ck87MY+xDE9U/vzH5RXWHVlmQuydJYYjiNTToeUL3Iow3luT1oXSCpxb2q/D9rZ zHed1mPqORgvcDKoVmAZo9KieybdiO5Bp4EyKEPqC0oNdtuXXTUBybD9RnfVSMp24t5/ NWGSoQKNI8wNy7P3NzVYLUpWwPb8X6iIWCS5ZzKTkWa54nTFK3yrTf5YGIoafR2h3S04 BrMg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1690889312; s=strato-dkim-0002; d=adminart.net; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=7HnaM4/F1nX8lRLego5UmuyotPe9UT+2vO3jDlZOJAk=; b=Gzk4vD0LZJLArO0TR1GjA7tq1nMkG5dtM7eWoE9F8bi3Sp2tto47LzH1p+p3NI40H4 iIdoJ/hZtWo21X8ikWnAqrIH+lvqYI0OOmw1GNqQdp2RRj7nRoQyMYOKlshHFQ5g7w/i YKfqAIjy5qtLeshYx9SV0pdKWhdG7RLEqViRo9Bilzp4XQmliX8Q2R9/fCZIGN0Snv6I 1dDcHo+mVQWdPySzNJfSvyZ7M1xL3fOZLeg2Im8LLFdnVmlyn/Y3qpg1tGRkav1EGqSp ZiNRBLX3uI2/jwOduVzBil/2itjKKmznvwC2cxBvdMuQWARt2nufQoMLWuauiulnOgBP girw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1690889312; s=strato-dkim-0003; d=adminart.net; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=7HnaM4/F1nX8lRLego5UmuyotPe9UT+2vO3jDlZOJAk=; b=7laSYZE6HRz7IQ8mtpsq8X7E6tpsPoBqvBKt/XfN1vPIuE69neIk2QTGBZQuZ158Ph vKfP8A4QZXTUM2YfybDg== X-RZG-AUTH: ":O2kGeEG7b/pS1Ey9Rna9iAZFrfz26y6zbtmqiE/f0+UVPWzfkhbRoUzSCTTNnjIupuXQshKqSG7HgphPv/kc/YeRUrW7Q+K30FhwK6zFf7Z8m4qs" Original-Received: from [IPv6:2a09:8e40:1122:f400:f177:7f3c:18f2:8e66] by smtp.strato.de (RZmta 49.6.6 AUTH) with ESMTPSA id Qbac0bz71BSWVav (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Tue, 1 Aug 2023 13:28:32 +0200 (CEST) In-Reply-To: Received-SPF: none client-ip=81.169.146.219; envelope-from=hw@adminart.net; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144521 Archived-At: On Mon, 2023-07-31 at 16:18 -0400, Spencer Baugh wrote: > After I use scroll-up or scroll-down, I want to start reading the new > text on the screen. But it's easy to lose track of where the new text > start, especially with larger values of next-screen-context-lines. >=20 > So, I would like scrolling to move point to the division between old and > new text. Then the location of the cursor will help me keep track of > which text is new and which text is old. > > Concretely, this means scroll-up should put point at the beginning of > the new text (and therefore at the end of the old text), and scroll-down > should put point at the end of the new text (and therefore at the > beginning of the old text). >=20 > Is this possible? Maybe try the following: (setq scroll-preserve-screen-position t) (setq scroll-conservatively 0) (setq scroll-margin 1) With this, I can see point and that is where the text scrolls to. > Alternative suggestions for how I can keep track of what text is new on > screen after scrolling are also appreciated. >=20 > I think I only want this for scroll-{up,down} and > scroll-other-window{,-down} but possibly it would make sense for other > commands which I don't know. >=20 > (I would file a bug requesting this feature, but scrolling is so > fundamental that perhaps this is already supported by some combination > of features which I don't know) Have you tried scroll-lock-mode?