From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: recenter-top-bottom Date: Wed, 14 Nov 2007 23:07:28 +0100 Message-ID: <473B71A0.1030702@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195078088 14125 80.91.229.12 (14 Nov 2007 22:08:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2007 22:08:08 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 14 23:08:12 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 1IsQP1-0008LX-84 for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 23:08:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsQOl-0001KL-8o for ged-emacs-devel@m.gmane.org; Wed, 14 Nov 2007 17:07:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IsQOh-0001EW-1m for emacs-devel@gnu.org; Wed, 14 Nov 2007 17:07:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IsQOf-00018F-68 for emacs-devel@gnu.org; Wed, 14 Nov 2007 17:07:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsQOe-000182-Th for emacs-devel@gnu.org; Wed, 14 Nov 2007 17:07:44 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IsQOa-0004XD-Ju; Wed, 14 Nov 2007 17:07:40 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:63741 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1IsQOY-0008Fb-56; Wed, 14 Nov 2007 23:07:38 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 071113-1, 2007-11-13), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1IsQOY-0008Fb-56. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1IsQOY-0008Fb-56 eeb7f93d4fed4ba351f8cc084de7e8cb X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:83207 Archived-At: Drew Adams wrote: >> I am still interested in your original design, which I think is good. > > I think the version below combines the best of each and should satisfy most > people. It is the same as the original design, except that the cycling order > is appropriate for where you start out. > > 1. An explicit arg (plain `C-u' or numeric) is always respected, whenever it > is used. > > 2. Otherwise, the first `C-l' always recenters. > > 3. Otherwise, successive `C-l' cycles among top, middle, and bottom (top and > bottom are modulo `scroll-conservatively'). The initial position (top, > middle, or bottom third of the window) determines the cycling order: > middle -> bottom -> top versus middle -> top -> bottom. I like this new version. It is useful and inituitive and easy to remember IMO.