GNU bug report logs - #42653
28.0.50; scroll-margin is sometimes ignored with hl-line/display-line-numbers-mode

Previous Next

Package: emacs;

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kevin Liu <kevin <at> nivekuil.com>
Cc: 42653 <at> debbugs.gnu.org
Subject: bug#42653: 28.0.50; scroll-margin is sometimes ignored with hl-line/display-line-numbers-mode
Date: Sun, 02 Aug 2020 18:33:35 +0300
> From: Kevin Liu <kevin <at> nivekuil.com>
> Cc: 42653 <at> debbugs.gnu.org
> Date: Sat, 01 Aug 2020 10:32:13 -0700
> 
> On  1 August 2020 09:44, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
> > I only see this when EOB is before end of the window, which I don't
> > think is a bug.
> 
> Could you elaborate on this?  I don't understand why it's proper for
> hl-line-mode and display-line-numbers-mode to affect scrolling behavior
> in any scenario, much less this one.

Indeed, they shouldn't.  I've misinterpreted the test case, sorry.

There was a 15-year old code that handled the logic of scroll-margin
when EOB is visible, and it had a bug.  This should now be fixed on
the master branch.




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.