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:19:40 +0200 Message-ID: <83sg8g5fer.fsf@gnu.org> References: <87k4fkr896.fsf@gmail.com> <871rg0ibj2.fsf@gnus.org> <87v9dcqojh.fsf@inria.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18210"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 8355@debbugs.gnu.org To: Antoine Levitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 19:51:30 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 1kmi5A-0004b2-OS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 19:51:28 +0100 Original-Received: from localhost ([::1]:42378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmi59-0007Kc-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 13:51:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmhak-0000Hi-SF for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:20:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmhak-0008Gq-D0 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmhak-0002z6-8n for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:20: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:20: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.160745159411453 (code B ref 8355); Tue, 08 Dec 2020 18:20:02 +0000 Original-Received: (at 8355) by debbugs.gnu.org; 8 Dec 2020 18:19:54 +0000 Original-Received: from localhost ([127.0.0.1]:59701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmhac-0002ye-CP for submit@debbugs.gnu.org; Tue, 08 Dec 2020 13:19:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmhaa-0002yR-7e for 8355@debbugs.gnu.org; Tue, 08 Dec 2020 13:19:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55879) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmhaU-0008G6-Sn; Tue, 08 Dec 2020 13:19:47 -0500 Original-Received: from [176.228.60.248] (port=4306 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kmhaU-0003hS-Bu; Tue, 08 Dec 2020 13:19:46 -0500 In-Reply-To: <87v9dcqojh.fsf@inria.fr> (message from Antoine Levitt on Tue, 08 Dec 2020 16:56:50 +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:195419 Archived-At: > From: Antoine Levitt > Date: Tue, 08 Dec 2020 16:56:50 +0100 > Cc: 8355@debbugs.gnu.org > > The original bug might have been at least partially closed, I now don't > see this as much as I used to in code buffers (but it might equally have > been a change in my config). However I do see this *a lot* in tex files, > reproductibly, and it's still very annoying. I'd love it if this was > fixed! > > 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). > > > > 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) I don't think I understand what is the complaint here. The screen position of the cursor _is_ preserved with these settings, don't you agree? They are preserved on my system: I did many C-v and M-v, and the cursor stays on the same spot on display, moving a few pixels here and there when the line at cursor is smaller or taller than the default. If this is what you see, then what is NOT working as expected in this scenario? 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.