GNU bug report logs -
#10902
24.0.93; Point displayed after end of buffer with scroll-margin
Previous Next
Reported by: Johan Bockgård <bojohan <at> gnu.org>
Date: Mon, 27 Feb 2012 19:22:01 UTC
Severity: normal
Found in version 24.0.93
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 10902 in the body.
You can then email your comments to 10902 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10902
; Package
emacs
.
(Mon, 27 Feb 2012 19:22:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Johan Bockgård <bojohan <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 27 Feb 2012 19:22:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
Eval
(progn
(pop-to-buffer (get-buffer-create "*foo*"))
(dotimes (n 5) (insert "x\n"))
(goto-char (point-min))
(setq scroll-margin 100)
(set-window-text-height nil (+ 5 2)))
Press `M->'
=> Point is displayed one line below the end of the buffer.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10902
; Package
emacs
.
(Mon, 27 Feb 2012 20:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 10902 <at> debbugs.gnu.org (full text, mbox):
> From: Johan Bockgård <bojohan <at> gnu.org>
> Date: Mon, 27 Feb 2012 20:18:09 +0100
>
>
> emacs -Q
>
> Eval
>
> (progn
> (pop-to-buffer (get-buffer-create "*foo*"))
> (dotimes (n 5) (insert "x\n"))
> (goto-char (point-min))
> (setq scroll-margin 100)
> (set-window-text-height nil (+ 5 2)))
>
> Press `M->'
>
> => Point is displayed one line below the end of the buffer.
The same happens in Emacs 23, so this isn't a regression in Emacs 24.
I will take a look soon. Thanks for reporting this.
P.S. Is there a real-life use-case behind this? I mean, setting a
scroll margin that is wider than the window sounds... how should I put
it... weird, no?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10902
; Package
emacs
.
(Mon, 27 Feb 2012 22:20:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 10902 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Johan Bockgård <bojohan <at> gnu.org>
>> Date: Mon, 27 Feb 2012 20:18:09 +0100
>>
>>
>> emacs -Q
>>
>> Eval
>>
>> (progn
>> (pop-to-buffer (get-buffer-create "*foo*"))
>> (dotimes (n 5) (insert "x\n"))
>> (goto-char (point-min))
>> (setq scroll-margin 100)
>> (set-window-text-height nil (+ 5 2)))
>>
>> Press `M->'
>>
>> => Point is displayed one line below the end of the buffer.
>
> The same happens in Emacs 23, so this isn't a regression in Emacs 24.
Yes, I noticed that after sending the report. Actually, it happens
already in Emacs 21.
(BTW, I cannot reproduce it in emacs -nw.)
> I will take a look soon. Thanks for reporting this.
>
> P.S. Is there a real-life use-case behind this? I mean, setting a
> scroll margin that is wider than the window sounds... how should I put
> it... weird, no?
The precise value of scroll-margin is not important. It happens for any
value > 1.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10902
; Package
emacs
.
(Fri, 02 Mar 2012 11:40:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 10902 <at> debbugs.gnu.org (full text, mbox):
> From: Johan Bockgård <bojohan <at> gnu.org>
> Cc: 10902 <at> debbugs.gnu.org
> Date: Mon, 27 Feb 2012 23:15:55 +0100
>
> > I will take a look soon. Thanks for reporting this.
> >
> > P.S. Is there a real-life use-case behind this? I mean, setting a
> > scroll margin that is wider than the window sounds... how should I put
> > it... weird, no?
>
> The precise value of scroll-margin is not important. It happens for any
> value > 1.
But only if the window height is 2 lines more than the buffer line
count, according to my testing.
Anyway, I think I fixed this (in revision 107481 on the trunk).
Please see if there are any leftovers after that fix.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10902
; Package
emacs
.
(Sat, 03 Mar 2012 17:30:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 10902 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> > I will take a look soon. Thanks for reporting this.
>> >
>> > P.S. Is there a real-life use-case behind this? I mean, setting a
>> > scroll margin that is wider than the window sounds... how should I put
>> > it... weird, no?
>>
>> The precise value of scroll-margin is not important. It happens for any
>> value > 1.
>
> But only if the window height is 2 lines more than the buffer line
> count, according to my testing.
Mine too.
> Anyway, I think I fixed this (in revision 107481 on the trunk).
> Please see if there are any leftovers after that fix.
It fixes the problem for me. Thanks.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 03 Mar 2012 19:09:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Johan Bockgård <bojohan <at> gnu.org>
:
bug acknowledged by developer.
(Sat, 03 Mar 2012 19:09:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 10902-done <at> debbugs.gnu.org (full text, mbox):
> From: Johan Bockgård <bojohan <at> gnu.org>
> Cc: 10902 <at> debbugs.gnu.org
> Date: Sat, 03 Mar 2012 18:28:41 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> > I will take a look soon. Thanks for reporting this.
> >> >
> >> > P.S. Is there a real-life use-case behind this? I mean, setting a
> >> > scroll margin that is wider than the window sounds... how should I put
> >> > it... weird, no?
> >>
> >> The precise value of scroll-margin is not important. It happens for any
> >> value > 1.
> >
> > But only if the window height is 2 lines more than the buffer line
> > count, according to my testing.
>
> Mine too.
>
> > Anyway, I think I fixed this (in revision 107481 on the trunk).
> > Please see if there are any leftovers after that fix.
>
> It fixes the problem for me. Thanks.
Thanks, I'm closing the bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 01 Apr 2012 11:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 38 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.