From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Redisplay resets vscroll when window start changes Date: Fri, 19 Nov 2021 13:07:32 -0500 Message-ID: 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> <83o86izyrt.fsf@gnu.org> <83zgq2x95p.fsf@gnu.org> <83k0h4wrbi.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="30008"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: luangruo@yahoo.com, 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 Fri Nov 19 19:08:51 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 1mo8Je-0007c4-9c for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Nov 2021 19:08:50 +0100 Original-Received: from localhost ([::1]:55170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo8Jd-0002uM-02 for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Nov 2021 13:08:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo8IV-0002Cz-IJ for emacs-devel@gnu.org; Fri, 19 Nov 2021 13:07:39 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo8IS-0001M0-JL; Fri, 19 Nov 2021 13:07:38 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AE487440CF5; Fri, 19 Nov 2021 13:07:34 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E1848440089; Fri, 19 Nov 2021 13:07:32 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1637345252; bh=WJDp+y9EbUvzov8uDWe1YUyrLTC2ljb7wZUqr0e/l08=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fMYMH1pwKjSQLgfpvvIMxtAv3yFjL9hpi42vfI38G6YR/8qJzxirt83LphISOPiED ucFluvlTcUpCXDt9+E5kkIzEF5u0CVQ6I+G2BPZAKrHJbrEs+Eioem6oJhTGzMYX/O DkoDmimP/6wQ48Ey++dPMh4tAcmteycs6eb6e9DYk0GNYxkcU7DoCtDA/hfUNkfYak IgooybGInqK1+t5WqqpSIxkvLzOLAKUokXVnNLrMESUUjWgSbKiRAuJuOU4dt3L8j6 ENBRCELsTXqNP5/5xGCe1IKQWEQdm34zgQVcpMWbq683t5N3vLbmrAYNk+InAX2hdQ F7voXHFWizFqg== Original-Received: from ceviche (modemcable085.122-83-70.mc.videotron.ca [70.83.122.85]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BB699120808; Fri, 19 Nov 2021 13:07:32 -0500 (EST) In-Reply-To: <83k0h4wrbi.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 19 Nov 2021 09:13:53 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:279767 Archived-At: Eli Zaretskii [2021-11-19 09:13:53] wrote: > The current code is not prepared to deal with test cases like that > one. The current Emacs code never sets vscroll unless we are moving > through a tall line, so resetting vscroll as part of previous-line is > a no-op when there's no tall lines in sight, and is not doing any > harm. The test case was produced by a feature not yet in Emacs, and > so I'm saying that such a feature needs its own variant of > previous-line. But to the extent than this feature does not intend to change the behavior of `previous-line`, this new variant of `previous-line` should ideally do everything exactly like the current `previous-line`, except be more careful not to reset vscroll, right? So, ideally this new version could also be used when that new feature isn't used? Stefan