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.bugs Subject: bug#8355: 24.0.50; Boxes in mode-line and scrolling Date: Wed, 09 Dec 2020 18:17:30 +0200 Message-ID: <838sa754yt.fsf@gnu.org> References: <87k4fkr896.fsf@gmail.com> <871rg0ibj2.fsf@gnus.org> <87v9dcqojh.fsf@inria.fr> <83sg8g5fer.fsf@gnu.org> <878sa8b1bz.fsf@gnus.org> <83o8j45erv.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28413"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 8355@debbugs.gnu.org To: larsi@gnus.org, antoine.levitt@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 09 17:25:33 2020 Return-path: Envelope-to: geb-bug-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 1kn2HV-0007JE-O7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 17:25:33 +0100 Original-Received: from localhost ([::1]:35140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kn2HU-0004P2-NM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Dec 2020 11:25:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kn2AE-0007q9-AX for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 11:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kn2AE-00026w-2b for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 11:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kn2AD-0003ec-VG for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2020 11:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Dec 2020 16:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8355 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 8355-submit@debbugs.gnu.org id=B8355.160753066414020 (code B ref 8355); Wed, 09 Dec 2020 16:18:01 +0000 Original-Received: (at 8355) by debbugs.gnu.org; 9 Dec 2020 16:17:44 +0000 Original-Received: from localhost ([127.0.0.1]:35843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn29v-0003e4-RT for submit@debbugs.gnu.org; Wed, 09 Dec 2020 11:17:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn29t-0003dq-CI for 8355@debbugs.gnu.org; Wed, 09 Dec 2020 11:17:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50486) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kn29o-0001z1-59; Wed, 09 Dec 2020 11:17:36 -0500 Original-Received: from [176.228.60.248] (port=1223 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kn29n-0006rW-Hn; Wed, 09 Dec 2020 11:17:35 -0500 In-Reply-To: <83o8j45erv.fsf@gnu.org> (message from Eli Zaretskii on Tue, 08 Dec 2020 20:33:24 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195544 Archived-At: > Date: Tue, 08 Dec 2020 20:33:24 +0200 > From: Eli Zaretskii > Cc: antoine.levitt@gmail.com, 8355@debbugs.gnu.org > > > From: Lars Ingebrigtsen > > Cc: Antoine Levitt , 8355@debbugs.gnu.org > > Date: Tue, 08 Dec 2020 19:27:12 +0100 > > > > > The original report was talking about C-v followed by M-v producing a > > > 1-line displacement. Is _that_ the problem? If so, why did you > > > expect Emacs to come to the same place, AFAIK there's no guarantee of > > > that when variable-height text is involved. > > > > Shouldn't there be? Going back a page and forward a page should ideally > > land you on the same line. > > That's not how Emacs scroll commands work. But as I said, I will look > closer at the code and see if there's some subtle issue here. I installed a partial fix for this. It improves the situation, in that for many starting positions of point, the sequence of N C-v's followed by N M-v's, or vice versa, will now end up in the same line and the same screen position. There are still cases where we end up short by one line, and I don't see how that could be fixed as long as the buffer has some stretches of lines with smaller or larger height. Please try the latest master; if the improvement is sufficient, we can close this bug. Thanks.