GNU bug report logs -
#6264
23; scrolling up erratic when line fractions visible at bottom of window
Previous Next
Reported by: David Reitter <david.reitter <at> gmail.com>
Date: Tue, 25 May 2010 03:25:01 UTC
Severity: normal
Tags: unreproducible
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Wed, 3 Jul 2019 03:52:05 +0200
with message-id <CADwFkmmQ5S-LFVLHQosv4wF76uXLKN4qWSHzzSU5fORgdo+H6g <at> mail.gmail.com>
and subject line Re: bug#6264: 23; scrolling up erratic when line fractions visible at bottom of window
has caused the debbugs.gnu.org bug report #6264,
regarding 23; scrolling up erratic when line fractions visible at bottom of window
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
6264: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6264
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Moving down in a buffer does not work well at all when the last line in the window is not fully visible.
The problem occurs in a wide variety of conditions, but here is a test case that works for me:
Emacs -Q [23 branch build, NS port]
(setq scroll-conservatively 100)
(setq line-spacing 0.6)
(modify-frame-parameters nil '((height . 20)))
Insert some 40 lines of text into the buffer.
Now set point somewhere near the beginning of the buffer, and press <down> repeatedly to scroll the buffer.
You will see at some point that the text is scrolled up by more than one line so the cursor moves vertically up and down. Screenshots down-0 and down-1 illustrate this.
What should happen is that the window scroll so that the baseline of the last text line stays the same, analogous to what happening when we're at the top end of the window, pressing <up>.
NOTE: the above works with the default font (Monaco) on my system; on other systems or with other ports, slightly different line-spacing would apply.
Another, perhaps related problem:
Bottom line (before scrolling starts): here we have a buffer with lines that have different heights (AUCTeX).
We've got scroll-margin at 0, scroll-conservatively at 10000, scroll-up-aggressively nil. The attached screenshot (bottom-half-line) illustrates the problem: the last line is half-visible (that's OK), but the window scrolls too late.
The problem can be seen in the above Emacs -Q session with (setq line-spacing 1.2).
[bottom-half-line.png (image/png, inline)]
[down-1.png (image/png, inline)]
[down-0.png (image/png, inline)]
[Message part 7 (message/rfc822, inline)]
Alan Third <alan <at> idiocy.org> writes:
> David Reitter <david.reitter <at> gmail.com> writes:
>
>> Moving down in a buffer does not work well at all when the last line
>> in the window is not fully visible.
>>
>> The problem occurs in a wide variety of conditions, but here is a test
>> case that works for me:
>>
>> Emacs -Q [23 branch build, NS port]
>> (setq scroll-conservatively 100)
>> (setq line-spacing 0.6)
>> (modify-frame-parameters nil '((height . 20)))
>>
>> Insert some 40 lines of text into the buffer.
>>
>> Now set point somewhere near the beginning of the buffer, and press
>> <down> repeatedly to scroll the buffer.
>>
>> You will see at some point that the text is scrolled up by more than
>> one line so the cursor moves vertically up and down. Screenshots
>> down-0 and down-1 illustrate this.
>
> Hi David, I can't reproduce this in Emacs 25, so hopefully it's been
> fixed some time in the last six years.
>
> As always, I'll close in a few days if I don't hear otherwise.
It seems like this was never closed. Closed now.
Thanks,
Stefan Kangas
This bug report was last modified 6 years and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.