From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Redisplay resets vscroll when window start changes Date: Wed, 17 Nov 2021 12:31:32 +0800 Message-ID: <87sfvvs8rf.fsf@yahoo.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7507"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: mwd@md5i.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 17 05:32:49 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 1mnCcr-0001mc-5W for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Nov 2021 05:32:49 +0100 Original-Received: from localhost ([::1]:49180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnCcp-000485-3b for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 23:32:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnCbo-00035d-IB for emacs-devel@gnu.org; Tue, 16 Nov 2021 23:31:44 -0500 Original-Received: from sonic317-33.consmr.mail.ne1.yahoo.com ([66.163.184.44]:45986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnCbm-0004B8-C8 for emacs-devel@gnu.org; Tue, 16 Nov 2021 23:31:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637123500; bh=xkAGi/U5KfGer7GPywM2Na8e5a3w5CDTonF7GL0NuU8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=EYUCWTqFKs+VM1xugqq5A+eaiiQ8V2mSg1/htHkEHXodvsuo0PQJQPVObX49J5XxSisSv0PnT8YPTM2ivGhaqMITahnHAX3p2fLIeUS+WA4jFsiGzw6IYC63rbWEyFtOjN7I0R62ajQPMRIJ+rgRn36kMiNPnw56pZ7w26mLJU80NGleeQK52aq7P0FI8LLV7KEa/MxPognYuX2wxz3K2iUpaLosTxMJEC77/yNr/Kkk/UlqEBbQTNpbLCG54o0+wKh4094RCfye9ka/QuIF5irxSHLTAzXgSO8Y45P5iP7K4HobNO6G8MchOrTHN/q5VLACCNG6S2V6YkHM+ur1hQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637123500; bh=Sna74e90Mf0oAfD2i+c3qEvMfjzAeeoDwqXPyNzol84=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=iVIAw1yYckXs43wrNviWoCtoyL5cHzP9VKhlqE20U0L4O3i3KO74jHclxZMUnxIVkMA/jM/Ebb1FPng+rsGyhdOm+ulmtJL7GIMPZ+GyElmdgpQDAZocori9EUHD0v8Hanp+nqRe8dQ74ZYz4mVh7wlJW6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-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Wed, 17 Nov 2021 04:31:40 +0000 Original-Received: by kubenode502.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3268ccd2f48f07280d71271145130764; Wed, 17 Nov 2021 04:31:36 +0000 (UTC) In-Reply-To: <83wnl7zcej.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 17 Nov 2021 05:31:00 +0200") X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.44; envelope-from=luangruo@yahoo.com; helo=sonic317-33.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:279600 Archived-At: Eli Zaretskii writes: > 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. Yes, I understand that. But the problem is any command that can call `line-move' will end up resetting the vscroll, which most people don't expect. 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. I know of an external package named `good-scroll' that tries to solve this problem. I'll let you know of my findings. Thanks in advance.