From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: recenter is broken
Date: Thu, 07 Jul 2005 17:31:13 -0400 [thread overview]
Message-ID: <E1Dqdxh-0004Z6-T2@fencepost.gnu.org> (raw)
In-Reply-To: <200507070028.j670S9H26222@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 6 Jul 2005 19:28:09 -0500 (CDT))
Do `emacs -q -nbc' then:
C-h n
M-x end-of-buffer
Note how the entire file is completely overscrolled out of view.
Does this give good results?
*** window.c 06 Jul 2005 14:54:17 -0400 1.509
--- window.c 07 Jul 2005 16:02:47 -0400
***************
*** 5372,5377 ****
--- 5372,5379 ----
line counts would lead to strange effects. */
if (FRAME_WINDOW_P (XFRAME (w->frame)))
{
+ iarg = XINT (arg);
+
if (center_p)
{
struct it it;
***************
*** 5391,5397 ****
int extra_line_spacing;
int h = window_box_height (w);
- iarg = XINT (arg);
iarg = - max (-iarg, this_scroll_margin);
SET_TEXT_POS (pt, PT, PT_BYTE);
--- 5393,5398 ----
***************
*** 5453,5459 ****
{
struct position pos;
- iarg = XINT (arg);
iarg = max (iarg, this_scroll_margin);
pos = *vmotion (PT, -iarg, w);
--- 5454,5459 ----
next prev parent reply other threads:[~2005-07-07 21:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-07 0:28 recenter is broken Luc Teirlinck
2005-07-07 21:31 ` Richard M. Stallman [this message]
2005-07-07 21:41 ` Luc Teirlinck
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Dqdxh-0004Z6-T2@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).