GNU bug report logs - #63201
`scroll-margin' sometimes doesn't work

Previous Next

Package: emacs;

Reported by: Shynur Xie <one.last.kiss <at> outlook.com>

Date: Mon, 1 May 2023 10:51:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63201 in the body.
You can then email your comments to 63201 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#63201; Package emacs. (Mon, 01 May 2023 10:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shynur Xie <one.last.kiss <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 01 May 2023 10:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shynur Xie <one.last.kiss <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: `scroll-margin' sometimes doesn't work
Date: Mon, 1 May 2023 10:45:11 +0000
`scroll-margin' sometimes doesn't work

1. emacs -Q
2. In buffer *scratch*, C-x C-e:
    (progn
      (custom-set-variables
       '(custom-enabled-themes '(modus-vivendi))
       '(global-tab-line-mode t)
       '(scroll-margin 1)
       '(scroll-conservatively 101))
      (info-emacs-manual)
      (end-of-buffer)
      (goto-line 500))
3. With the cursor now at the 2nd line from the top of the window,
   press <up>-arrow-key several times and pay attention to resulting
   cursor position -- `scroll-margin' is 1 but Emacs still sometimes
   allows the cursor to stay at the 1st line of the window.

I uploaded a GIF at <https://emacs.stackexchange.com/questions/76649>
to show this behavior.

--
shynur




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63201; Package emacs. (Mon, 01 May 2023 12:29:02 GMT) Full text and rfc822 format available.

Message #8 received at 63201 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shynur Xie <one.last.kiss <at> outlook.com>
Cc: 63201 <at> debbugs.gnu.org
Subject: Re: bug#63201: `scroll-margin' sometimes doesn't work
Date: Mon, 01 May 2023 15:28:55 +0300
> From: Shynur Xie <one.last.kiss <at> outlook.com>
> Date: Mon, 1 May 2023 10:45:11 +0000
> msip_labels: 
> 
> `scroll-margin' sometimes doesn't work
> 
> 1. emacs -Q
> 2. In buffer *scratch*, C-x C-e:
>     (progn
>       (custom-set-variables
>        '(custom-enabled-themes '(modus-vivendi))
>        '(global-tab-line-mode t)
>        '(scroll-margin 1)
>        '(scroll-conservatively 101))
>       (info-emacs-manual)
>       (end-of-buffer)
>       (goto-line 500))
> 3. With the cursor now at the 2nd line from the top of the window,
>    press <up>-arrow-key several times and pay attention to resulting
>    cursor position -- `scroll-margin' is 1 but Emacs still sometimes
>    allows the cursor to stay at the 1st line of the window.

Thanks, should be fixed now on the emacs-29 branch.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 05 May 2023 05:48:01 GMT) Full text and rfc822 format available.

Notification sent to Shynur Xie <one.last.kiss <at> outlook.com>:
bug acknowledged by developer. (Fri, 05 May 2023 05:48:02 GMT) Full text and rfc822 format available.

Message #13 received at 63201-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: one.last.kiss <at> outlook.com
Cc: 63201-done <at> debbugs.gnu.org
Subject: Re: bug#63201: `scroll-margin' sometimes doesn't work
Date: Fri, 05 May 2023 08:48:31 +0300
> Cc: 63201 <at> debbugs.gnu.org
> Date: Mon, 01 May 2023 15:28:55 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Shynur Xie <one.last.kiss <at> outlook.com>
> > Date: Mon, 1 May 2023 10:45:11 +0000
> > msip_labels: 
> > 
> > `scroll-margin' sometimes doesn't work
> > 
> > 1. emacs -Q
> > 2. In buffer *scratch*, C-x C-e:
> >     (progn
> >       (custom-set-variables
> >        '(custom-enabled-themes '(modus-vivendi))
> >        '(global-tab-line-mode t)
> >        '(scroll-margin 1)
> >        '(scroll-conservatively 101))
> >       (info-emacs-manual)
> >       (end-of-buffer)
> >       (goto-line 500))
> > 3. With the cursor now at the 2nd line from the top of the window,
> >    press <up>-arrow-key several times and pay attention to resulting
> >    cursor position -- `scroll-margin' is 1 but Emacs still sometimes
> >    allows the cursor to stay at the 1st line of the window.
> 
> Thanks, should be fixed now on the emacs-29 branch.

No further comments, so I assume the bug is indeed fixed, and I'm
closing it.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Jun 2023 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.