From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: how to position cursor at top/middle/bottom of the current screen? ( H / M / L in Vi) Date: Wed, 5 Nov 2008 07:08:49 -0800 Message-ID: <002c01c93f58$6905ceb0$0200a8c0@us.oracle.com> References: <4f6ab4670810081609l539df820m61c2489a63c73b9c@mail.gmail.com><200811030925.mA39PGSl019100@zogzog.maillard.mobi> 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 1225897727 2497 80.91.229.12 (5 Nov 2008 15:08:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 15:08:47 +0000 (UTC) To: "'Kevin Rodgers'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 16:09:50 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kxk0y-0007ei-RN for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 16:09:49 +0100 Original-Received: from localhost ([127.0.0.1]:36003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kxjzr-0000jV-My for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 10:08:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxjzY-0000jJ-Jp for help-gnu-emacs@gnu.org; Wed, 05 Nov 2008 10:08:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxjzW-0000hm-EQ for help-gnu-emacs@gnu.org; Wed, 05 Nov 2008 10:08:19 -0500 Original-Received: from [199.232.76.173] (port=52427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxjzV-0000hj-W1 for help-gnu-emacs@gnu.org; Wed, 05 Nov 2008 10:08:18 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]:44329) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KxjzV-0004XR-BO for help-gnu-emacs@gnu.org; Wed, 05 Nov 2008 10:08:17 -0500 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id mA5F8Dn6015779; Wed, 5 Nov 2008 09:08:13 -0600 Original-Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id mA5F8C4R025166; Wed, 5 Nov 2008 08:08:12 -0700 Original-Received: from dradamslap1 (/141.144.83.246) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 05 Nov 2008 15:08:11 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ack/MlVfRksHyit7Qd2lMHx0N59AXgAJSaog X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59472 Archived-At: > > in window.el, you have recenter-top-bottom function which is > > bound to just C-l. > > Not in the window.el distributed with Emacs 22.3 > > > It will cycle between top, bottom and center of the screen. It is > > so convenient and I got so used to it that I could not pass over > > me ;) > > Cool. FYI - The code runs in previous Emacs versions also. The original is here, along with a couple of alternatives: http://www.emacswiki.org/emacs/misc-cmds.el And the CVS version is here: http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/window.el?view=log