From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: bug#736: C-l interacts badly with scroll-conservatively Date: Sun, 17 Aug 2008 15:12:04 -0400 Message-ID: <87tzdj8ni3.fsf@cyd.mit.edu> References: <873al3u0ao.fsf@stupidchicken.com> <00da01c90083$58563410$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219000287 20029 80.91.229.12 (17 Aug 2008 19:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2008 19:11:27 +0000 (UTC) Cc: 736@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 17 21:12:19 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 1KUnfk-0003C6-QV for ged-emacs-devel@m.gmane.org; Sun, 17 Aug 2008 21:12:17 +0200 Original-Received: from localhost ([127.0.0.1]:60935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUnen-0003dE-EA for ged-emacs-devel@m.gmane.org; Sun, 17 Aug 2008 15:11:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUnei-0003ZH-I2 for emacs-devel@gnu.org; Sun, 17 Aug 2008 15:11:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUneg-0003Vz-LU for emacs-devel@gnu.org; Sun, 17 Aug 2008 15:11:12 -0400 Original-Received: from [199.232.76.173] (port=52564 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUneg-0003VY-FX for emacs-devel@gnu.org; Sun, 17 Aug 2008 15:11:10 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:38222) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUnef-0008Sq-W1 for emacs-devel@gnu.org; Sun, 17 Aug 2008 15:11:10 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id D2EF157E2BF; Sun, 17 Aug 2008 15:12:04 -0400 (EDT) In-Reply-To: <00da01c90083$58563410$0200a8c0@us.oracle.com> (Drew Adams's message of "Sun, 17 Aug 2008 09:07:26 -0700") 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 (newer, 3) 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:102557 Archived-At: "Drew Adams" writes: >> emacs -q >> M-: (setq scroll-conservatively 100) RET >> C-h n >> C-v >> C-l >> C-l >> C-l >> >> The repeated C-l's don't move to the top or bottom of the >> window, unlike the usual behavior (new to Emacs 23) of >> recenter-top-bottom. > > Maybe I'm misunderstanding the bug report, but by design > `scroll-conservatively' modifies the behavior of > `recenter-top-bottom'. As the doc string says: > > "Top and bottom destinations are actually > `scroll-conservatively' lines from true window top > and bottom." That's true; I didn't see that. But why does recenter-top-bottom use scroll-conservatively? AFAICT, people often use a large nonzero number for scroll-conservatively so that when point is at the bottom of the window, C-n scrolls down by one and keeps the cursor at the bottom; and similarly, if point is at the top of the window, C-p keeps the cursor at the top. It doesn't make sense to make scroll-conservatively affect C-l. I think we should use scroll-margin for this purpose, rather than scroll-conservatively. What do people think?