unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42653: 28.0.50; scroll-margin is sometimes ignored with hl-line/display-line-numbers-mode
@ 2020-08-01 10:39 Kevin Liu
  2020-08-01 16:44 ` Eli Zaretskii
  2020-09-10 21:18 ` bug#42653: Emacs now recentering very aggressively Dale Sedivec
  0 siblings, 2 replies; 12+ messages in thread
From: Kevin Liu @ 2020-08-01 10:39 UTC (permalink / raw)
  To: 42653

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





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-02-09  9:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 10:39 bug#42653: 28.0.50; scroll-margin is sometimes ignored with hl-line/display-line-numbers-mode Kevin Liu
2020-08-01 16:44 ` Eli Zaretskii
2020-08-01 17:32   ` Kevin Liu
2020-08-02 15:33     ` Eli Zaretskii
2020-08-02 20:24       ` Kevin Liu
2020-08-03  2:28         ` Eli Zaretskii
2020-08-03  3:18           ` Kevin Liu
2020-08-03 14:57             ` Eli Zaretskii
2020-09-10 21:18 ` bug#42653: Emacs now recentering very aggressively Dale Sedivec
2020-09-11 10:29   ` Lars Ingebrigtsen
2020-09-12  8:08   ` Eli Zaretskii
2022-02-09  9:49     ` bug#42653: 28.0.50; scroll-margin is sometimes ignored with hl-line/display-line-numbers-mode Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).