unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Antoine Levitt <antoine.levitt@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, 8355@debbugs.gnu.org
Subject: bug#8355: 24.0.50; Boxes in mode-line and scrolling
Date: Fri, 11 Dec 2020 13:25:16 +0100	[thread overview]
Message-ID: <87360c8r83.fsf@inria.fr> (raw)
In-Reply-To: <834kks3652.fsf@gnu.org>


11 December 2020 12:59 +01, Eli Zaretskii:
>> I assumed small, random variations in height of amplitude δh around a
>> reference height h0, and n δh >> 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 δh is always positive, which might explain
>> 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





  reply	other threads:[~2020-12-11 12:25 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-27 13:41 bug#8355: 24.0.50; Boxes in mode-line and scrolling Antoine Levitt
2020-12-08 15:05 ` Lars Ingebrigtsen
2020-12-08 15:56   ` Antoine Levitt
2020-12-08 18:18     ` Lars Ingebrigtsen
2020-12-08 18:29       ` Eli Zaretskii
2020-12-08 18:19     ` Eli Zaretskii
2020-12-08 18:27       ` Lars Ingebrigtsen
2020-12-08 18:33         ` Eli Zaretskii
2020-12-09 16:17           ` Eli Zaretskii
2020-12-09 17:01             ` Lars Ingebrigtsen
2020-12-09 17:13               ` Eli Zaretskii
2020-12-09 17:24                 ` Lars Ingebrigtsen
2020-12-09 20:47                   ` Antoine Levitt
2020-12-10  3:34                     ` Eli Zaretskii
2020-12-11  8:35                       ` Antoine Levitt
2020-12-11  8:47                         ` Eli Zaretskii
2020-12-11  9:08                           ` Antoine Levitt
2020-12-11 11:59                             ` Eli Zaretskii
2020-12-11 12:25                               ` Antoine Levitt [this message]
2020-12-14 18:25                                 ` Eli Zaretskii
2020-12-14 19:02                                   ` Antoine Levitt
2020-12-14 19:27                                     ` Eli Zaretskii
2020-12-14 18:26                   ` Eli Zaretskii
2020-12-14 19:05                     ` Lars Ingebrigtsen
2020-12-14 19:30                       ` Eli Zaretskii
2020-12-15  5:23                         ` Lars Ingebrigtsen
2021-01-20 17:09                           ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87360c8r83.fsf@inria.fr \
    --to=antoine.levitt@gmail.com \
    --cc=8355@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).