From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: recenter-top-bottom Date: Sun, 11 Nov 2007 14:38:56 -0800 Message-ID: References: <87ode079i6.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194820800 17652 80.91.229.12 (11 Nov 2007 22:40:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2007 22:40:00 +0000 (UTC) Cc: alan.mackenzie_jwa@nxp.com, emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 11 23:40:03 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IrLTH-0006Uo-2E for ged-emacs-devel@m.gmane.org; Sun, 11 Nov 2007 23:40:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrLT5-0003eJ-0u for ged-emacs-devel@m.gmane.org; Sun, 11 Nov 2007 17:39:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrLSy-0003ZW-Hp for emacs-devel@gnu.org; Sun, 11 Nov 2007 17:39:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrLSw-0003V4-1t for emacs-devel@gnu.org; Sun, 11 Nov 2007 17:39:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrLSv-0003Un-SG for emacs-devel@gnu.org; Sun, 11 Nov 2007 17:39:41 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IrLSv-0006Wx-Ea for emacs-devel@gnu.org; Sun, 11 Nov 2007 17:39:41 -0500 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id lABMdcGj010769; Sun, 11 Nov 2007 15:39:38 -0700 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lABLbA6M032495; Sun, 11 Nov 2007 15:39:37 -0700 Original-Received: from 141.144.89.9 by acsmt350.oracle.com with ESMTP id 3359023131194820726; Sun, 11 Nov 2007 14:38:46 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87ode079i6.fsf@jurta.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:82975 Archived-At: > I like the new definition of `recenter-top-bottom'. But there is one > problem: it doesn't work when point is close to the end of the buffer. > > It doesn't put point to the upper half of the window but this > is possible with other commands (because the end of the buffer > is not attached to the end of the window in Emacs). Or at or near the beginning of the buffer. Depending on what you mean by "work". I think it DTRT in these cases, but you're welcome to tweak it. > Also I suggest replacing `(recenter)' with `(recenter '(4))' to not redraw > the frame when moving point to the center, to not make it different from > moving point to other parts of the window that doesn't redraw the frame. Yes. Go for it.