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: Wed, 14 Nov 2007 16:58:12 -0800 Message-ID: References: <874pfotmxr.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 1195088346 15301 80.91.229.12 (15 Nov 2007 00:59:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2007 00:59:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 15 01:59:09 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 1IsT4V-0001ns-Hq for ged-emacs-devel@m.gmane.org; Thu, 15 Nov 2007 01:59:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsT4I-00009U-Pq for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 19:58:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IsT4E-000094-Fl for emacs-devel@gnu.org; Wed, 14 Nov 2007 19:58:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IsT4C-00008s-TA for emacs-devel@gnu.org; Wed, 14 Nov 2007 19:58:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsT4C-00008p-QP for emacs-devel@gnu.org; Wed, 14 Nov 2007 19:58:48 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IsT4C-0007WE-D1 for emacs-devel@gnu.org; Wed, 14 Nov 2007 19:58:48 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id lAF0wiJH020685; Wed, 14 Nov 2007 18:58:44 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id lAF0wgKd004680; Wed, 14 Nov 2007 17:58:42 -0700 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-81-159.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3366980121195088292; Wed, 14 Nov 2007 16:58:12 -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: <874pfotmxr.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:83222 Archived-At: > > The starting position of the window determines the cycling order: > > If initially in the top or middle third: top -> middle -> bottom. > > If initially in the bottom third: bottom -> middle -> top. > > But why it does `middle -> bottom -> top' if initially in the > middle third? I think `middle -> top -> bottom' would be > much more convenient! It's a toss-up, IMO. I have no preference, in any case. If that's preferred by most, then just switch it: (otherwise (let ((top (1+ (count-lines 1 (window-start)))) (current (1+ (count-lines 1 (point)))) (total (window-height))) (if (< (- current top) (/ total 3)) (setq this-command 'recenter-tb-middle) (setq this-command 'recenter-tb-middle-1))) (recenter))