From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: recenter is broken Date: Thu, 07 Jul 2005 17:31:13 -0400 Message-ID: References: <200507070028.j670S9H26222@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1120773836 22387 80.91.229.2 (7 Jul 2005 22:03:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 22:03:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 00:03:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DqeT0-0003lI-Qg for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2005 00:03:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqeUO-00027Y-Iu for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2005 18:05:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DqeRZ-0000ph-Gj for emacs-devel@gnu.org; Thu, 07 Jul 2005 18:02:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DqeLd-0007dm-AY for emacs-devel@gnu.org; Thu, 07 Jul 2005 17:55:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqeLb-0007S9-Gc for emacs-devel@gnu.org; Thu, 07 Jul 2005 17:55:55 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dqe6h-0001sA-87 for emacs-devel@gnu.org; Thu, 07 Jul 2005 17:40:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Dqdxh-0004Z6-T2; Thu, 07 Jul 2005 17:31:13 -0400 Original-To: Luc Teirlinck In-reply-to: <200507070028.j670S9H26222@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 6 Jul 2005 19:28:09 -0500 (CDT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40596 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40596 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 ----