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 05:31:00 +0200 Message-ID: <83wnl7zcej.fsf@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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mwd@md5i.com, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 17 04:32:05 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 1mnBg4-0003T2-VJ for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Nov 2021 04:32:05 +0100 Original-Received: from localhost ([::1]:55854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnBg3-00039s-Fq for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 22:32:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnBfC-0002LH-9p for emacs-devel@gnu.org; Tue, 16 Nov 2021 22:31:10 -0500 Original-Received: from [2001:470:142:3::e] (port=45218 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 1mnBfB-0004un-UX; Tue, 16 Nov 2021 22:31:09 -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=8PCS7Hr1J5tG7oPTqfT43aRHcDmFTJv2LwKyvQoRraA=; b=OfU6WQ8XG/Bc McQHYxiC8Oezh6DUJ48wHoJ9BKswy9sBoPVxVafXhVbvqR3qeM5qdTC7pjxOFT8KW1F0UqkuJuzR5 Oh4QeHPP1ZVuQfvAMWGhHWwWyf4Fix5H+DxLLvs+8Imt6PgsuaMf/73Z447NAzFVLc5iMxvxqxVZj x/Yn8Pbp3C713X2vnULjRz3SR8Pbx3CVAHTnoJK4lbPP5ImMrBPRi0ViWtZZqIAwT7WtdRb2ra7we k2gBs47HFfoXp5Mfa1/Neu2G0m4/wKdGMqrjXaZilrfFqi2K7L64do0uxHnCbbqifAbUQxGtGQUDc vP5o0RLbfPJIZZWQ5qkAiQ==; Original-Received: from [87.69.77.57] (port=1320 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 1mnBfA-00050U-2w; Tue, 16 Nov 2021 22:31:09 -0500 In-Reply-To: <87czmztynn.fsf@yahoo.com> (message from Po Lu on Wed, 17 Nov 2021 08:26:52 +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:279591 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Wed, 17 Nov 2021 08:26:52 +0800 > > Michael Welsh Duggan writes: > > > As you can see, the vscroll has reset, despite simply doing > > cursor-movement within the visible reason. This is the behavior that I > > believe Po Lu is complaining about. Why should cursor movement that > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Minor correction: I wasn't the source of this complaint, some other > people were. 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.