From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#662: 23.0.60; Constant recentering with scroll-margin set Date: Fri, 08 Aug 2008 16:56:06 -0400 Message-ID: References: <874p5xk2s6.fsf@stupidchicken.com> <874p5vnys3.fsf@photon.caeruleus.net> Reply-To: Stefan Monnier , 662@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 1218497376 2809 80.91.229.12 (11 Aug 2008 23:29:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 23:29:36 +0000 (UTC) Cc: 662@emacsbugs.donarmstrong.com, Chong Yidong To: Ralf Angeli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 01:30:27 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 1KSgpd-0004EQ-RB for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 01:29:46 +0200 Original-Received: from localhost ([127.0.0.1]:55561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSgoh-0006RL-LM for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2008 19:28:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSgnX-0005Z3-1T for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 19:27:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSgnT-0005WQ-5G for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 19:27:33 -0400 Original-Received: from [199.232.76.173] (port=55799 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSgnS-0005WJ-Kh for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 19:27:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57857) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSgnS-0006ew-6p for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2008 19:27:30 -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 m7BNRO1K017788; Mon, 11 Aug 2008 16:27:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7BNAKBn012891; Mon, 11 Aug 2008 16:10:20 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 11 Aug 2008 23:10:20 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 662 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 662-submit@emacsbugs.donarmstrong.com id=B662.12184957119542 (code B ref 662); Mon, 11 Aug 2008 23:10:20 +0000 Original-Received: (at 662) by emacsbugs.donarmstrong.com; 11 Aug 2008 23:01:51 +0000 Original-Received: from smtp-05.arnet.com.ar (smtp-05.arnet.com.ar [200.45.191.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7BN1eAn009469 for <662@emacsbugs.donarmstrong.com>; Mon, 11 Aug 2008 16:01:42 -0700 Original-Received: (qmail 2936 invoked from network); 11 Aug 2008 16:59:45 -0000 Original-Received: from unknown (HELO ceviche.home) (190.30.131.157) by 0 with SMTP; 11 Aug 2008 16:59:45 -0000 Original-Received: by ceviche.home (Postfix, from userid 20848) id 1ABFFB40B3; Fri, 8 Aug 2008 16:56:06 -0400 (EDT) In-Reply-To: <874p5vnys3.fsf@photon.caeruleus.net> (Ralf Angeli's message of "Fri, 08 Aug 2008 20:32:12 +0200") 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: Mon, 11 Aug 2008 19:27:33 -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:19308 Archived-At: >> It could also be that this has to be fixed in Gnus. I'm not sure, but I >> remember that there was a similar issue back in 2005 where some changes >> hat to be made in `gnus-article-next-page' and related functions in >> order to deal with some changes in the handling of `scroll-margin'. > Okay, the problem is the statement > (move-to-window-line -1) > in `gnus-article-next-page'. If `scroll-margin' is set and greater than > 0 it will lead to a recentering. This is usually countered by > `gnus-article-next-page-1', but not at the end of an article where > `gnus-article-next-page-1' will not be called. > The problem can be circumvented by changing the above statement to > (move-to-window-line (- -1 scroll-margin)) > Let me know if the recentering behavior will stay like it is now, then I > can report this to the Gnus maintainers. BTW, shouldn't Gnus "just" set scroll-margin (and such things) buffer-locally in its article buffer, so as to isolate it from such problems? Or maybe not buffer-locally but let-bound around a call to redisplay? Stefan