From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67222 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Recentering during article scrolling with scroll-margin Date: Mon, 11 Aug 2008 11:51:54 +0900 Organization: Emacsen advocacy group Message-ID: References: <878wv52p9o.fsf@photon.caeruleus.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1218423335 6613 80.91.229.12 (11 Aug 2008 02:55:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 02:55:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15676@lists.math.uh.edu Mon Aug 11 04:56:26 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KSNa6-0000Mw-74 for ding-account@gmane.org; Mon, 11 Aug 2008 04:56:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KSNWO-0004vI-Mn; Sun, 10 Aug 2008 21:52:36 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KSNWM-0004v4-UC for ding@lists.math.uh.edu; Sun, 10 Aug 2008 21:52:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KSNWI-0007iD-Ox for ding@lists.math.uh.edu; Sun, 10 Aug 2008 21:52:34 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KSNWI-0002pf-00 for ; Mon, 11 Aug 2008 04:52:30 +0200 Original-Received: from localhost ([127.0.0.1]:57527) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1KSNVj-0006bg-BT for ding@gnus.org; Sun, 10 Aug 2008 21:51:55 -0500 X-Hashcash: 1:20:080811:ding@gnus.org::wW+I7NxMy292s1Zw:00000Noa X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:iNqqjczVh0JXG/1YcW0n2ng9Re4= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67222 Archived-At: --=-=-= >>>>> Ralf Angeli wrote: > the handling of `scroll-margin' has recently changed a bit in Emacs CVS > and recentering seems to happen more agressively now. This becomes a > problem if `scroll-margin' is greater than 0 and one is scrolling an > article with . When the bottom of the article is reached the last > line will not stay at the bottom of the window but jump to the middle of > it. > The recentering is triggered by the statement > (move-to-window-line -1) > in `gnus-article-next-page'. It is usually countered by > `gnus-article-next-page-1', but not at the end of an article where the > latter function will not be called. > The problem can be circumvented by changing the above statement to > (move-to-window-line (- -1 scroll-margin)) I tried (setq scroll-margin 3) on the latest Emacs 22.0.50 and 23.0.60 and confirmed this fix is necessary for the case where `gnus-article-over-scroll' is nil (the default). > If necessary I can provide a change log entry for such a change. Please provide it and I'll commit the slightly modified one like: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (move-to-window-line (if (featurep 'xemacs) -1 (- -1 scroll-margin))) --=-=-= Content-Disposition: inline (Note that there is no `scroll-margin' control in XEmacs.) BTW, another problem related to `scroll-margin' seems to have been solved in the latest Emacs 22.0.50 and 23.0.60: >>>>> In Katsumi Yamaoka wrote: > The problem is, in short, that the cursor in the Gnus summary > buffer jumps to a subject line that is not for the article being > displayed just after selecting the article by the `g' command, if > `scroll-margin' is a non-zero value (actually it is 3). You may > need to have many articles in threads and to expand the summary > window to a certain height. Regards, --=-=-=--