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#736: C-l interacts badly with scroll-conservatively Date: Sun, 17 Aug 2008 15:12:04 -0400 Message-ID: <87tzdj8ni3.fsf__43536.6355035969$1219001342$gmane$org@cyd.mit.edu> References: <873al3u0ao.fsf@stupidchicken.com> <00da01c90083$58563410$0200a8c0@us.oracle.com> Reply-To: Chong Yidong , 736@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219001284 22735 80.91.229.12 (17 Aug 2008 19:28:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2008 19:28:04 +0000 (UTC) Cc: 736@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 17 21:28:56 2008 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.50) id 1KUnvk-0007R5-Pk for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Aug 2008 21:28:53 +0200 Original-Received: from localhost ([127.0.0.1]:53881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUnum-0003wM-Gz for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Aug 2008 15:27:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUnuj-0003w9-FJ for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 15:27:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUnuf-0003uB-2x for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 15:27:45 -0400 Original-Received: from [199.232.76.173] (port=52328 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUnue-0003u8-Vq for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 15:27:41 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40775) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KUnuc-0004dO-N8 for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 15:27:40 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7HJRQwd010309; Sun, 17 Aug 2008 12:27:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7HJK4ca007606; Sun, 17 Aug 2008 12:20:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 17 Aug 2008 19:20:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 736 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 736-submit@emacsbugs.donarmstrong.com id=B736.12190002715670 (code B ref 736); Sun, 17 Aug 2008 19:20:04 +0000 Original-Received: (at 736) by emacsbugs.donarmstrong.com; 17 Aug 2008 19:11:11 +0000 Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7HJB8g0005664 for <736@emacsbugs.donarmstrong.com>; Sun, 17 Aug 2008 12:11:09 -0700 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) Resent-Date: Sun, 17 Aug 2008 15:27:45 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:19512 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?