GNU bug report logs -
#45628
28.0.50; Scrolling on echo area with pixel-scroll-mode enabled locks up Emacs
Previous Next
Reported by: Amin Bandali <bandali <at> gnu.org>
Date: Sun, 3 Jan 2021 16:15:01 UTC
Severity: normal
Found in version 28.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
> Date: Mon, 4 Jan 2021 17:57:48 +0900
> Cc: 国広卓也 <tkk <at> misasa.okayama-u.ac.jp>
>
> I think that following patch would work but usage of `while’
> does not look cool. If there can is better style, please
> suggest me.
How about a normal while loop with catch before it and throw inside?
> - (while (pixel-point-at-top-p amt) ; prevent too late (multi tries)
> - (vertical-motion 1)) ; move point downward
> + (while (and (pixel-point-at-top-p amt) ; prevent too late (multi tries)
> + (equal (vertical-motion 1) 1))) ; move point downward
> (pixel-scroll-pixel-up amt)))))) ; move scope downward
>
> (defun pixel-scroll-down (&optional arg)
> @@ -149,8 +149,8 @@ pixel-scroll-down
> pixel-resolution-fine-flag
> (frame-char-height))
> (pixel-line-height -1))))
> - (while (pixel-point-at-bottom-p amt) ; prevent too late (multi tries)
> - (vertical-motion -1)) ; move point upward
> + (while (and (pixel-point-at-bottom-p amt) ; prevent too late (multi tries)
> + (equal (vertical-motion -1) -1))) ; move point upward
I think equality to 1 or -1 is too stringent. vertical-motion could
move more if you have overlay strings or display strings at point that
include embedded newlines. So I think you should test >= 1 and <= -1
respectively.
Also, I believe this problem exists on the emacs-27 branch as well,
right? Then we should install there first.
Thanks.
This bug report was last modified 4 years and 130 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.