From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.bugs Subject: bug#8355: 24.0.50; Boxes in mode-line and scrolling Date: Fri, 11 Dec 2020 13:25:16 +0100 Message-ID: <87360c8r83.fsf@inria.fr> 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> <838sa754yt.fsf@gnu.org> <87h7ouykuf.fsf@gnus.org> <835z5a6gyf.fsf@gnu.org> <87czziyjsc.fsf@gnus.org> <87y2i6yadn.fsf@inria.fr> <83wnxq49n5.fsf@gnu.org> <875z58sptj.fsf@inria.fr> <835z583f1x.fsf@gnu.org> <874kkssob0.fsf@inria.fr> <834kks3652.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11786"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 0.9.17; emacs 27.1 Cc: larsi@gnus.org, 8355@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 13:26:11 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 1knhUw-0002wJ-VB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 13:26:10 +0100 Original-Received: from localhost ([::1]:50438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knhUv-00044f-Dj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 07:26:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knhUp-00044X-0S for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 07:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knhUo-0000aZ-Kw for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 07:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knhUo-0004s5-GH for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 07:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Antoine Levitt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Dec 2020 12:26: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.160768953218675 (code B ref 8355); Fri, 11 Dec 2020 12:26:02 +0000 Original-Received: (at 8355) by debbugs.gnu.org; 11 Dec 2020 12:25:32 +0000 Original-Received: from localhost ([127.0.0.1]:40306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knhUK-0004r8-7x for submit@debbugs.gnu.org; Fri, 11 Dec 2020 07:25:32 -0500 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:47064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knhUE-0004qp-K0 for 8355@debbugs.gnu.org; Fri, 11 Dec 2020 07:25:30 -0500 Original-Received: by mail-wr1-f44.google.com with SMTP id a11so1107567wrr.13 for <8355@debbugs.gnu.org>; Fri, 11 Dec 2020 04:25:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:in-reply-to:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=GNH7+6M8JwgWAnVpLOnTNJMWdFxDRd/4sgHmZG62bGM=; b=tMmV8ozcAtODY1i0JT5FJ99hGcKDSsstSwR89qAZVyB4JfAhX0by0Hy31mUhQG4T4f 0wcLI4wfTOsmb98l0GkpDFeGdA1nMpWd2lkNCPN7qjS4MXivJhZgfOZpYJfy46SHBCFM sTVf9BBKCk2aZbT+yE/si1u3f1w2KH2qZ9VSE3Zvtrmu9qxfrXFjM02ciIZs/utL+jfo IxTsq/1il6oV8OpbMEt0h/PV57UpK2ck3lMNMBhBTS5EQJLBtfscN88+JSSLeEJJJtp/ LcDBN4KPVppMhOiGoIvWKJ1c3iiboGCO+j2dzmJTgShp7gTBxFvLZSKH63bvynzcRD21 AjWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:in-reply-to:from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; bh=GNH7+6M8JwgWAnVpLOnTNJMWdFxDRd/4sgHmZG62bGM=; b=A1DV73DUk53gsNKhxnu+sqTd+KOhbsiMD4JYLDqV9do8svA+UrtjzrB5nI14I7mUcY 66MZ/r5kYBGc4M3+bzfRHcFwlHPVWn2RNfRer/wohG7X2/nGshdB/UB6BQ76E4h18/do +ZeTrve9M3flILgihBV/M3uZc2OP5En5CLXiET470hSYTOWsBNnqsuZ4mtinvNxP38P1 gHxB5RvTz53Lc7AdZ5VhVpS1RPR3xKDXIqya3SofDTby7wFU71gP2MoxHI7fD8GrtpB9 fAAZJJJk9dSEUj3DOG8ThItntnfBGehaXcA4+hZuLUlo4AvaPfWvMUw0YS1MOfKEuuHA eLAA== X-Gm-Message-State: AOAM530z4Zu7Mx7QiOUmw96UzUNjpSCl++mY2OBKNnhnjdZZg/b2/wKh K+//6hElLcLoWAW1CqAWnDe4K3tOaMbHsw== X-Google-Smtp-Source: ABdhPJw6T+xecnp5BkI/VxTFrZmU3fRVIFdG0mpcKXFtm7fMmvftEKwTSnGd6LZVRh28RPG455TP7A== X-Received: by 2002:adf:e8cd:: with SMTP id k13mr13883036wrn.193.1607689520212; Fri, 11 Dec 2020 04:25:20 -0800 (PST) Original-Received: from epsilon (58.32.23.109.rev.sfr.net. [109.23.32.58]) by smtp.gmail.com with ESMTPSA id h98sm16407489wrh.69.2020.12.11.04.25.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Dec 2020 04:25:19 -0800 (PST) In-reply-to: <834kks3652.fsf@gnu.org> 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:195746 Archived-At: 11 December 2020 12:59 +01, Eli Zaretskii: >> I assumed small, random variations in height of amplitude =CE=B4h around= a >> reference height h0, and n =CE=B4h >> h0. Then the place where you fall >> before rounding is randomly distributed. You'll get movement only if >> you've rounded up or down by about the half-separation, which should >> happen a fraction 1/pixel height of the time. I have lines about 20px >> tall, so that's 5%; I multiply by two to account for the possibility of >> having rounded both up and down. If anything this should be an >> overestimate; but again my assumptions are probably unrealistic (eg for >> instance in my tex files the =CE=B4h is always positive, which might exp= lain >> why I always see movement in the same direction). > > You assume random distribution of taller or smaller lines through the > document, but that is not necessarily true. There could be large > groups of smaller or taller lines, which will skew the percentage. > > Anyway, an example where this happens will be useful to at least > understand what's going on, and perhaps provide a better solution. I completely agree my assumptions are unrealistic, it was just to get a baseline for what to expect. So, on the tex file from arxiv I posted (https://arxiv.org/e-print/2003.00726), I tried the following: from emacs -Q with (setq scroll-conservatively 100000000) (setq scroll-preserve-screen-position 'stay) go to a random line, C-l, C-v, M-v, see if the cursor moved. I did a macro with that, and repeating it I'm able to get eg from line 368 to line 305. Most lines are 18px, some 19. My screen is about 30 lines tall, so the fact this phenomenon appears for ~65 contiguous lines (ie more than two screenfuls) suggests that it's more than just bad luck. For reproducibility, I'm using stock GTK emacs -Q on a 1366x768 screen with Monospace Regular 11 font in fullscreen. Best, Antoine