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: Tue, 08 Dec 2020 20:29:57 +0200 Message-ID: <83r1o05exm.fsf@gnu.org> References: <87k4fkr896.fsf@gmail.com> <871rg0ibj2.fsf@gnus.org> <87v9dcqojh.fsf@inria.fr> <87czzkb1qz.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37469"; mail-complaints-to="usenet@ciao.gmane.io" Cc: antoine.levitt@gmail.com, 8355@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 19:55:45 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 1kmi9H-0009dK-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 19:55:43 +0100 Original-Received: from localhost ([::1]:55436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmi9G-0004FR-VJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 13:55:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmhlP-0000BA-ST for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:31:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmhlO-0001Ba-Hw for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmhlO-0003Ie-FW for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 18:31:02 +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.160745222512633 (code B ref 8355); Tue, 08 Dec 2020 18:31:02 +0000 Original-Received: (at 8355) by debbugs.gnu.org; 8 Dec 2020 18:30:25 +0000 Original-Received: from localhost ([127.0.0.1]:59718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmhke-0003HW-2m for submit@debbugs.gnu.org; Tue, 08 Dec 2020 13:30:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmhkc-0003HF-Ic for 8355@debbugs.gnu.org; Tue, 08 Dec 2020 13:30:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56019) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmhkX-00010s-BB; Tue, 08 Dec 2020 13:30:09 -0500 Original-Received: from [176.228.60.248] (port=4968 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kmhkR-0003R6-T5; Tue, 08 Dec 2020 13:30:05 -0500 In-Reply-To: <87czzkb1qz.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 08 Dec 2020 19:18:12 +0100) 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:195423 Archived-At: > From: Lars Ingebrigtsen > Cc: 8355@debbugs.gnu.org, Eli Zaretskii > Date: Tue, 08 Dec 2020 19:18:12 +0100 > > Antoine Levitt writes: > > > Here's a reproducer from emacs -Q (just reproduced on 27.1): > > > > Set > > (setq scroll-conservatively 100000000) > > (setq scroll-preserve-screen-position 'stay) > > > > Open a latex file of some complexity (with sections and math, for > > instance https://arxiv.org/e-print/2003.00726, but it works on any tex > > file), and make sure it's in latex-mode. Go somewhere in the middle of > > the file, center point (C-l), then scroll up then down (C-v and M-v). > > Yup; I can reproduce this in Emacs 28 -- point moves around a lot when > paging back and forth. I wouldn't say "a lot". On my system it moves by less than a screen line. > > I traced it down to > > lines of varying heights: it disappears if I set > > (setq font-latex-fontify-script nil) > > (setq font-latex-fontify-sectioning 'color) > > Yes, I guess this is due to the mixture of line heights in that > buffer -- when it's computing how many lines to scroll back and forth, > it's not being consistent when going forward and backward. > > Eli, does this sound familiar to you? Not really. I will look into it, in case there's some off-by-one, but you are probably right about the reason.