From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#736: C-l interacts badly with scroll-conservatively Date: Sun, 17 Aug 2008 12:58:02 -0700 Message-ID: <200808171958.m7HJw2Wb009703__26161.6601878361$1219003718$gmane$org@sallyv1.ics.uci.edu> References: <873al3u0ao.fsf@stupidchicken.com> <00da01c90083$58563410$0200a8c0@us.oracle.com> <87tzdj8ni3.fsf__43536.6355035969$1219001342$gmane$org@cyd.mit.edu> Reply-To: Dan Nicolaescu , 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 1219003660 29099 80.91.229.12 (17 Aug 2008 20:07:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2008 20:07:40 +0000 (UTC) Cc: 736@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 17 22:08:32 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 1KUoYB-0000CT-ST for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Aug 2008 22:08:32 +0200 Original-Received: from localhost ([127.0.0.1]:40413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUoXE-0006sw-Td for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Aug 2008 16:07:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUoXB-0006pV-6z for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 16:07:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUoXA-0006nu-GD for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 16:07:28 -0400 Original-Received: from [199.232.76.173] (port=38837 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUoXA-0006nk-DT for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 16:07:28 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40811) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KUoX9-0006jm-P2 for bug-gnu-emacs@gnu.org; Sun, 17 Aug 2008 16:07:28 -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 m7HK7QeT023158; Sun, 17 Aug 2008 13:07:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7HK55nj021930; Sun, 17 Aug 2008 13:05:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Original-Sender: dann@ics.uci.edu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 17 Aug 2008 20:05:05 +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.121900310319472 (code B ref 736); Sun, 17 Aug 2008 20:05:05 +0000 Original-Received: (at 736) by emacsbugs.donarmstrong.com; 17 Aug 2008 19:58:23 +0000 Original-Received: from sallyv1.ics.uci.edu (sallyv1.ics.uci.edu [128.195.1.109]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7HJwK2w019466 for <736@emacsbugs.donarmstrong.com>; Sun, 17 Aug 2008 12:58:21 -0700 X-ICS-MailScanner-Watermark: 1219607884.10535@4uaa3sU05m1RRhnBeV7urQ Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m7HJw2Wb009703; Sun, 17 Aug 2008 12:58:02 -0700 (PDT) In-Reply-To: <87tzdj8ni3.fsf__43536.6355035969$1219001342$gmane$org@cyd.mit.edu> (Chong Yidong's message of "Sun, 17 Aug 2008 15:12:04 -0400") Original-Lines: 37 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sun, 17 Aug 2008 16:07:28 -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:19513 Archived-At: Chong Yidong writes: > "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. IMHO, that makes more sense.