From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66484 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.gnus.general Subject: scroll-margin woes Date: Thu, 13 Mar 2008 16:12:39 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1205421212 10098 80.91.229.12 (13 Mar 2008 15:13:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2008 15:13:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14973@lists.math.uh.edu Thu Mar 13 16:14:00 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 1JZp7z-0004X0-Ra for ding-account@gmane.org; Thu, 13 Mar 2008 16:13:56 +0100 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 1JZp7A-0005hH-BU; Thu, 13 Mar 2008 10:13:04 -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 1JZp79-0005h6-7T for ding@lists.math.uh.edu; Thu, 13 Mar 2008 10:13:03 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JZp72-0007kO-Fx for ding@lists.math.uh.edu; Thu, 13 Mar 2008 10:13:03 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JZp79-0001z0-00 for ; Thu, 13 Mar 2008 16:13:03 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JZp6w-0003NW-Fr for ding@gnus.org; Thu, 13 Mar 2008 15:12:50 +0000 Original-Received: from kafka.physik3.gwdg.de ([134.76.92.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Mar 2008 15:12:50 +0000 Original-Received: from de_bb by kafka.physik3.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Mar 2008 15:12:50 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: kafka.physik3.gwdg.de User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:3GppHSj7Lt8zRK4KcCIshnoaCjA= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66484 Archived-At: --=-=-= I've recently set my scroll-margin value to >0 and immediately had problems using Gnus. First, I would recommend to apply the patch that sets the scroll-margin to zero in summary buffers: http://article.gmane.org/gmane.emacs.devel/85300 Even if this patch may only cure the symptom of a bug in Emacs I'd still think it should be applied since a) it does no harm and b) the summary buffer is otherwise practically unusable if scroll-margin > 0 and Emacs 22 or newer. Additionally, I noticed that when I hit ENTER in the summary buffer to scroll the currently displayed article by one line, it often scrolls by nearly a full page. This frequently happens in shimbun groups, but not always - I can't really say why. My guess is this is due to (move-to-window-line -1) in gnus-article-next-page. I fixed this behavior by putting the cursor in the middle of the article buffer before calling gnus-article-next-page-1 (see attached patch). This works for me, but I don't know if this is the correct thing to do. Scrolling in Emacs is a deep mystery to me... -David --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=gnus-art-patch.diff --- gnus-art.el 2008-03-13 15:51:23.000000000 +0100 +++ gnus-art.el-patched 2008-03-13 15:52:31.000000000 +0100 @@ -6100,6 +6100,9 @@ (gnus-narrow-to-page 1) ;Go to next page. nil) ;; More in this page. + (when (and (boundp 'scroll-margin) + (not (zerop scroll-margin))) + (move-to-window-line nil)) (gnus-article-next-page-1 lines) nil)) --=-=-=--