From: charles@aurox.ch (Charles A. Roelli)
To: Eli Zaretskii <eliz@gnu.org>
Cc: 29325@debbugs.gnu.org
Subject: bug#29325: 26.0.90: Info scrolling stuck
Date: Mon, 20 Nov 2017 20:52:39 +0100 [thread overview]
Message-ID: <m260a4wwvs.fsf@aurox.ch> (raw)
In-Reply-To: <83r2sudwgv.fsf@gnu.org> (message from Eli Zaretskii on Sun, 19 Nov 2017 19:12:00 +0200)
> Date: Sun, 19 Nov 2017 19:12:00 +0200
> From: Eli Zaretskii <eliz@gnu.org>
>
> > > Does the same problem happen if you scroll with "M-1 M-v" instead of
> > > the mouse wheel?
> >
> > No: it works fine in that case.
>
> If this is only about scrolling with the mouse wheel, then perhaps the
> factor which differs between our systems is the amount of scrolling
> per wheel notch. How many lines does a single notch scroll in your
> case? And does the problem happen if you turn the wheel slowly?
I don't have access to a GNU/Linux system at the moment, but if I
recall correctly, it would be 5 lines at a time, when scrolling
slowly.
The behavior is different depending on how fast the mouse wheel is
turned. If it is turned slowly several times in a row, it is possible
to make window-start reach as far as the second or third line of the
buffer. If you turn it once more, then window-start jerks down a few
lines instead of reaching the start of the buffer. This can be
repeated ad infinitum.
In contrast, when turning the mouse wheel quickly (a few notches in
one second), it is not possible to get window-start anywhere near the
start of the buffer, except by using non-mouse commands or by setting
point closer to the top of the window first (with the mouse).
> > > (cond ((eq button mouse-wheel-down-event)
> > > (condition-case nil (funcall mwheel-scroll-down-function amt)
> > > ;; Make sure we do indeed scroll to the beginning of
> > > ;; the buffer.
> > > (beginning-of-buffer
> > > (unwind-protect
> > > (funcall mwheel-scroll-down-function)
> > > ;; If the first scroll succeeded, then some scrolling
> > > ;; is possible: keep scrolling til the beginning but
> > > ;; do not signal an error. For some reason, we have
> > > ;; to do it even if the first scroll signaled an
> > > ;; error, because otherwise the window is recentered
> > > ;; for a reason that escapes me. This problem seems
> > > ;; to only affect scroll-down. --Stef
> > > (set-window-start (selected-window) (point-min))))))
> >
> > That is, when attempting to scroll down (as in, moving towards
> > beginning of buffer) under some mysterious circumstances, the window
> > gets recentered around point instead of being scrolled. However, if
> > point is moved to the first line of the window, say, then the
> > scrolling does work as expected (as I've found out by experimenting
> > more with my initial recipe).
>
> I have serious difficulties dealing with unexplained and undescribed
> problems that happen "under mysterious circumstances".
>
> If you build with --enable-checking='yes,glyphs', and then turn on
> redisplay tracing with "M-x trace-redisplay" before scrolling with the
> wheel, what do you see? And how does that trace differ from when you
> scroll with "M-1 M-v"?
Thanks, I will try that soon. In the meantime, I noticed that I could
also reproduce the bug in Emacs 25.2, but not in 25.1. I will try to
bisect between the releases.
> (I find it useful to disable blink-cursor-mode and global-eldoc-mode
> before such experiments, because they tend to trigger extra redisplay
> cycles that conceal the interesting parts.)
next prev parent reply other threads:[~2017-11-20 19:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-16 19:41 bug#29325: 26.0.90: Info scrolling stuck Charles A. Roelli
2017-11-16 19:47 ` Eli Zaretskii
2017-11-16 20:45 ` Charles A. Roelli
2017-11-17 7:11 ` Eli Zaretskii
2017-11-19 16:49 ` Charles A. Roelli
2017-11-19 17:12 ` Eli Zaretskii
2017-11-20 19:52 ` Charles A. Roelli [this message]
2017-11-20 20:25 ` Eli Zaretskii
2017-11-21 19:24 ` Charles A. Roelli
2017-11-21 19:42 ` Eli Zaretskii
2017-11-21 19:58 ` Eli Zaretskii
2017-11-22 15:38 ` Eli Zaretskii
2017-11-22 19:04 ` Charles A. Roelli
2017-11-23 20:08 ` Charles A. Roelli
2017-11-23 20:31 ` Eli Zaretskii
2017-11-22 18:56 ` Charles A. Roelli
[not found] <<m2efoyvwoa.fsf@aurox.ch>
2017-11-16 22:35 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m260a4wwvs.fsf@aurox.ch \
--to=charles@aurox.ch \
--cc=29325@debbugs.gnu.org \
--cc=eliz@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.