From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; Constant recentering with scroll-margin set Date: Tue, 12 Aug 2008 15:15:03 -0400 Message-ID: References: <874p5xk2s6.fsf@stupidchicken.com> <874p5vnys3.fsf@photon.caeruleus.net> <87d4kjdlgd.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218568559 16139 80.91.229.12 (12 Aug 2008 19:15:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 19:15:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 12 21:16:50 2008 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 1KSzMD-0003OQ-2E for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 21:16:37 +0200 Original-Received: from localhost ([127.0.0.1]:48896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzLG-0004HX-Oi for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 15:15:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSzKr-00045y-2J for emacs-devel@gnu.org; Tue, 12 Aug 2008 15:15:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSzKp-00045D-Mu for emacs-devel@gnu.org; Tue, 12 Aug 2008 15:15:12 -0400 Original-Received: from [199.232.76.173] (port=44175 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzKp-000458-FZ for emacs-devel@gnu.org; Tue, 12 Aug 2008 15:15:11 -0400 Original-Received: from smtp-05.arnet.com.ar ([200.45.191.5]:33673) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KSzKo-0003Mx-QI for emacs-devel@gnu.org; Tue, 12 Aug 2008 15:15:11 -0400 Original-Received: (qmail 15614 invoked from network); 12 Aug 2008 13:13:20 -0000 Original-Received: from unknown (HELO ceviche.home) (190.30.131.157) by 0 with SMTP; 12 Aug 2008 13:13:20 -0000 Original-Received: by ceviche.home (Postfix, from userid 20848) id 21570B40A9; Tue, 12 Aug 2008 15:15:03 -0400 (EDT) In-Reply-To: <87d4kjdlgd.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 08 Aug 2008 21:30:10 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:102371 Archived-At: > What do people think? When there is a scroll-margin, should > move-to-window-line automagically move to the scroll-margin instead of > recentering? I never used it, neither interactively nor programmatically, so I don't have a strong opinion on that. Reading the docstring I get the impression that the intention is to place the cursor at a particular location within the window, rather than to place point at a particular location within the buffer. So that leads me to think that it should never cause recentering. Maybe if the operation cannot be performed, the function should return the number of lines "left". Stefan