GNU bug report logs -
#42653
28.0.50; scroll-margin is sometimes ignored with hl-line/display-line-numbers-mode
Previous Next
Reported by: Kevin Liu <kevin <at> nivekuil.com>
Date: Sat, 1 Aug 2020 16:27:02 UTC
Severity: normal
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 42653 <at> debbugs.gnu.org (full text, mbox):
Thanks! This has honestly bugged me forever and will improve my Emacs
experience immeasurably.
> /* if EOB is visible, disable bottom margin */
This is a very interesting change that I didn't know I wanted, and I
really like it. I see two issues right now:
1. If (hl-line-mode 1), then scrolling down as you reach EOB will
continue "collapsing" the margin, moving the cursor but not scrolling
beyond EOB, until it hits the actual EOB line. At that point,
scroll-margin will again take effect and the screen will suddenly scroll
down by scroll-margin lines (7 in my case). This seems like a bug,
off-by-one maybe?
2. The intended behavior of disabling the bottom margin as EOB
approaches seems to only apply when (hl-line-mode 1) or
(display-line-numbers-mode 1). This means that enabling these modes
still affects scrolling behavior, which I think is fundamentally
unexpected.
This bug report was last modified 3 years and 159 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.