bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10902: 24.0.93; Point displayed after end of buffer with scroll-marg


From: Johan Bockgård
Subject: bug#10902: 24.0.93; Point displayed after end of buffer with scroll-margin
Date: Mon, 27 Feb 2012 23:15:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Johan Bockgård <bojohan@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]