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: scroll-top-bottom Date: Sat, 20 Mar 2010 15:38:12 -0400 Message-ID: References: <87ocitw2dl.fsf@stupidchicken.com> <201003130001.o2D01FFQ003489@godzilla.ics.uci.edu> <87vdd1yqe4.fsf@stupidchicken.com> <87eijjzrkd.fsf_-_@mail.jurta.org> <8BDB38B3CCBC481CB014CB3DA9FA1948@us.oracle.com> <87y6hq39rk.fsf_-_@mail.jurta.org> <9B30E5E474524F4092443C23D37B92CC@us.oracle.com> <8739zxgx0v.fsf@gnu.org> <87zl25e31f.fsf@mail.jurta.org> <878w9nn4el.fsf_-_@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269113969 29265 80.91.229.12 (20 Mar 2010 19:39:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Mar 2010 19:39:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 20 20:39:22 2010 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.69) (envelope-from ) id 1Nt4W1-0001pS-Jm for ged-emacs-devel@m.gmane.org; Sat, 20 Mar 2010 20:39:21 +0100 Original-Received: from localhost ([127.0.0.1]:39828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nt4W1-0005wT-0Z for ged-emacs-devel@m.gmane.org; Sat, 20 Mar 2010 15:39:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nt4Uy-0005Mp-HF for emacs-devel@gnu.org; Sat, 20 Mar 2010 15:38:16 -0400 Original-Received: from [140.186.70.92] (port=40571 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nt4Uw-0005Ly-NU for emacs-devel@gnu.org; Sat, 20 Mar 2010 15:38:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nt4Uv-0007Sp-Bf for emacs-devel@gnu.org; Sat, 20 Mar 2010 15:38:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:15780 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nt4Uv-0007Sl-4v for emacs-devel@gnu.org; Sat, 20 Mar 2010 15:38:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEADLBpEtFpZMX/2dsb2JhbACbPHS8GYR9BIsd X-IronPort-AV: E=Sophos;i="4.51,279,1267419600"; d="scan'208";a="58672167" Original-Received: from 69-165-147-23.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.23]) by ironport2-out.pppoe.ca with ESMTP; 20 Mar 2010 15:38:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 390107FBC; Sat, 20 Mar 2010 15:38:12 -0400 (EDT) In-Reply-To: <878w9nn4el.fsf_-_@mail.jurta.org> (Juri Linkov's message of "Sat, 20 Mar 2010 03:34:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:122381 Archived-At: >>> The pc-select-override-scroll-error feature is something more. >> I think it should be moved to simple.el since it is not directly related >> to pc-select and is useful globally outside of pc-select. > This feature is implemented by CUA mode, but it would be very useful > for users who don't use CUA. To support it in the core, I've implemented > a new user option `scroll-top-bottom' (that defines the scrolling behavior > at the top/bottom of the buffer). When scrolling by a page at a time, this makes sense, but when scrolling only by a single line at a time, it's very odd for point to suddenly jump several lines at a time. So I think the behavior should be refined so it doesn't just "move to BEGV or ZV" but instead "when scrolling by N lines can't be done, move by N lines instead". And yes, I think this would be better done at the Lisp level by introducing new commands so it doesn't affect other code that calls scroll-(up|down). As for using it by default, I don't have a clear opinion on it yet. It doesn't seem like a bad idea, but I haven't actually tried it. Stefan