From: "Johan Bockgård" <bojohan@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 10902@debbugs.gnu.org
Subject: bug#10902: 24.0.93; Point displayed after end of buffer with scroll-margin
Date: Mon, 27 Feb 2012 23:15:55 +0100 [thread overview]
Message-ID: <87399vly78.fsf@gnu.org> (raw)
In-Reply-To: <83ehtgdnez.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 27 Feb 2012 22:36:04 +0200")
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.
next prev parent reply other threads:[~2012-02-27 22:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-27 19:18 bug#10902: 24.0.93; Point displayed after end of buffer with scroll-margin Johan Bockgård
2012-02-27 20:36 ` Eli Zaretskii
2012-02-27 22:15 ` Johan Bockgård [this message]
2012-03-02 11:40 ` Eli Zaretskii
2012-03-03 17:28 ` Johan Bockgård
2012-03-03 19:06 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87399vly78.fsf@gnu.org \
--to=bojohan@gnu.org \
--cc=10902@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.