From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6671: moving point and scroll-conservatively Date: Thu, 24 Mar 2011 17:47:45 -0400 Message-ID: <87ei5wdwce.fsf@stupidchicken.com> References: <87vcz9s60m.fsf@stupidchicken.com> <87tyetb258.fsf@stupidchicken.com> <87k4fosg8e.fsf@stupidchicken.com> <874o6sp9sl.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1301004635 14808 80.91.229.12 (24 Mar 2011 22:10:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 22:10:35 +0000 (UTC) Cc: 6671@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 24 23:10:24 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2sjX-00087m-8U for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 23:10:23 +0100 Original-Received: from localhost ([127.0.0.1]:57485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2sjW-0002aR-CQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 18:10:22 -0400 Original-Received: from [140.186.70.92] (port=51188 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2sjR-0002aI-QH for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2011 18:10:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2sjQ-0002pn-R7 for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2011 18:10:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2sjQ-0002pi-PP for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2011 18:10:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q2sNu-0006PX-8Q; Thu, 24 Mar 2011 17:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Mar 2011 21:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6671-submit@debbugs.gnu.org id=B6671.130100327424627 (code B ref 6671); Thu, 24 Mar 2011 21:48:02 +0000 Original-Received: (at 6671) by debbugs.gnu.org; 24 Mar 2011 21:47:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2sNl-0006PA-QZ for submit@debbugs.gnu.org; Thu, 24 Mar 2011 17:47:54 -0400 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2sNj-0006Ox-SJ for 6671@debbugs.gnu.org; Thu, 24 Mar 2011 17:47:52 -0400 Original-Received: from furball (dhcp128036014187.central.yale.edu [128.36.14.187]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p2OLlkvB003860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 24 Mar 2011 17:47:46 -0400 Original-Received: by furball (Postfix, from userid 1000) id B714716066A; Thu, 24 Mar 2011 17:47:45 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Thu, 24 Mar 2011 21:56:07 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 24 Mar 2011 17:48:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45335 Archived-At: Juanma Barranquero writes: >> Here's a more concrete proposal. We change scroll-conservatively to >> accept a new value, t, which means "scroll as far as you need". Then >> try_scrolling can use the "try scrolling for 10 lines" heuristic before >> failing. In this specific case, a failure changes centering_position, >> adjusting the window start as though we had really scrolled the full >> amount. > > What does that mean, in terms of behavior? This means that any time point moves below the bottom of the window, the resulting scroll will leave the cursor at the bottom of the window. Any time point moves above the top of the window, the resulting scroll will leave the cursor at the top of the window. Unlike numerical values of scroll-conservatively, there is no "scrolling limit" to check. >> To cope with this, let's change the meaning of numeric values of >> scroll-conservatively: if it's larger than (say) 300, that is >> equivalent to t (infinity). > > That's a bit hackish. IMHO, if you do change `scroll-conservatively' > as suggested, just document the new values and let people change it. Hackish yes, but if there is no real reason to specify such big numerical values, I don't see any way this could have bad effects, in practice. Otherwise, users who miss that NEWS entry might get frustrated by the sluggish behavior. Another possibility is to introduce a "scroll-conservatively-scan-limit" variable, instead of hardcoding 300 lines.