From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: recenter-top-bottom Date: Mon, 12 Nov 2007 00:12:24 +0000 Message-ID: <87ir488gpj.fsf@bzg.ath.cx> References: <87abpk1j9i.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194822793 22665 80.91.229.12 (11 Nov 2007 23:13:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2007 23:13:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 12 00:13:17 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 1IrLzQ-0006Bl-So for ged-emacs-devel@m.gmane.org; Mon, 12 Nov 2007 00:13:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrLzE-0002kh-Jx for ged-emacs-devel@m.gmane.org; Sun, 11 Nov 2007 18:13:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrLyg-0002dE-Mb for emacs-devel@gnu.org; Sun, 11 Nov 2007 18:12:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrLyd-0002bo-Hh for emacs-devel@gnu.org; Sun, 11 Nov 2007 18:12:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrLyd-0002bi-7U for emacs-devel@gnu.org; Sun, 11 Nov 2007 18:12:27 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrLyd-0004zn-1X for emacs-devel@gnu.org; Sun, 11 Nov 2007 18:12:27 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so709871ugf for ; Sun, 11 Nov 2007 15:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=003I/BpKzHq9aTJ6DDNx0MbcV+UJansVmPkANKktLDg=; b=mpPelrndeJO8p7KZFpMUSM70UG+65F5b2Tmw4HahlDKeGIoYAkyuDT0xR1CHm5sJSC5HLb+9imFSzyZmeF9eBXTYStILeUYxipg4fHu34bCFMDWk/5IJwi8UKtAUf+iHu0NtP1Vrw/fF/LlJrBRX+nIvX9oEFCrH0sIsLFV8zpg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:from:to:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=HxMFFN16pdgLTxI3TvGwSs4uKOwLuxRycs6k5im6Q2M0S9+nMskB7EDMnQT4gun3fZKrXmiqElH3hhkLZBEzXTgBzLPVl4elceoS/+IrxuW0Y1YbHtC9qs2F+kMdfMa1Uikx9SBE8X7zfb84nvZgVk0dgDgX+PNs26w404LARxU= Original-Received: by 10.67.88.10 with SMTP id q10mr454460ugl.1194822745774; Sun, 11 Nov 2007 15:12:25 -0800 (PST) Original-Received: from bzg.ath.cx ( [81.99.213.34]) by mx.google.com with ESMTPS id 6sm3912219ugc.2007.11.11.15.12.24 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Nov 2007 15:12:24 -0800 (PST) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id C2C991575BA; Mon, 12 Nov 2007 00:12:24 +0000 (GMT) In-Reply-To: <87abpk1j9i.fsf@jurta.org> (Juri Linkov's message of "Mon, 12 Nov 2007 00:59:05 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:82984 Archived-At: Juri Linkov writes: >>> 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. > > When point is at the end of the buffer and at the middle of the window > then typing C-l could move it to the beginning of the window. I often type C-l when to point is *near* the middle of the buffer, just to slightly adjust the display. Sometimes, the point is already in the very middle and I don't notice it, and typing C-l just leaves the point where it is -- which is fine. I would find it disturbing to see the point jumping at the beginning of the window when it is at the middle of the window. For me, the middle of the window is kind of a gravity center, and hitting C-l should go there first, even when the point is already at the middle of the window. -- Bastien