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
View this message in rfc822 format
This has been a bug since at least 24.x, and I think Eli even fixed
something like it once before:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2012-11/msg00838.html
This problem is a little different because it involves scroll-margin.
When scrolling up, the cursor will seem to ignore it until it hits the
top, and then jumps back down to the margin.
To quickly reproduce this, run emacs -Q and then eval
(progn
(global-hl-line-mode)
(setq scroll-margin 5)
(setq scroll-conservatively 101)
(view-hello-file)
(end-of-buffer))
Then (previous-line) until you see the problem.
Further reference:
- https://emacs.stackexchange.com/questions/48340/line-numbers-break-scroll-margin
- https://github.com/syl20bnr/spacemacs/issues/8224
This bug report was last modified 3 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.