From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57603 Path: main.gmane.org!not-for-mail From: Danny Siu Newsgroups: gmane.emacs.gnus.general Subject: [Patch] fixed gnus-auto-center-summary Date: Thu, 20 May 2004 14:27:00 -0700 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1085088446 4679 80.91.224.253 (20 May 2004 21:27:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 May 2004 21:27:26 +0000 (UTC) Original-X-From: ding-owner+M6143@lists.math.uh.edu Thu May 20 23:27:19 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQv4R-0003WL-00 for ; Thu, 20 May 2004 23:27:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BQv4L-0001O1-00; Thu, 20 May 2004 16:27:13 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BQv4H-0001Nw-00 for ding@lists.math.uh.edu; Thu, 20 May 2004 16:27:09 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BQv4F-00042J-EE for ding@lists.math.uh.edu; Thu, 20 May 2004 16:27:07 -0500 Original-Received: from smtp-relay-7.sea.adobe.com (smtp-relay-7.adobe.com [192.150.22.7]) by justine.libertine.org (Postfix) with ESMTP id 86AB03A0035 for ; Thu, 20 May 2004 16:27:06 -0500 (CDT) Original-Received: from inner-relay-3.corp.adobe.com (inner-relay-3 [153.32.251.51]) by smtp-relay-7.sea.adobe.com (8.12.10/8.12.10) with ESMTP id i4KLR3SP002436 for ; Thu, 20 May 2004 14:27:03 -0700 (PDT) Original-Received: from mailsj-dev (mailsj-dev.corp.adobe.com [153.32.1.192]) by inner-relay-3.corp.adobe.com (8.12.9/8.12.9) with ESMTP id i4KLQvkq008770 for ; Thu, 20 May 2004 14:26:57 -0700 (PDT) Original-Received: from BALL.corp.adobe.com (c-154-189.corp.adobe.com [153.32.154.189]) by mailsj-v1.corp.adobe.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HY1007W87KU17@mailsj-v1.corp.adobe.com> for ding@gnus.org; Thu, 20 May 2004 14:26:57 -0700 (PDT) X-Face: fHBvLrQQW(GRz#RNTAN(,')p8NGv}{6dMh\:?%*D\+8hgkiA_dub1@\,Y"r5'a8C(8e~cGG(WFTU\OlAqI[B?V7m'ZGkquvZ/d k~E"A"@WK;0mLF&\%W1kIC]O"z#/>YNUefE1%5/NUX;ml]@$nW;05Z9uZ/CqTz]A)+`1ROuF~||pG= k>Zi@hE- Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org X-Mailer: No Gnus v0.3 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (windows-nt) X-Emacs: 21.3.50.8 Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57603 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57603 The summary buffer wasn't re-centering itself when moving from article to article even when gnus-auto-center-summary is t. I have fixed that. Can someone with cvs write access commit the changes for me? Thanks, -- Danny Dick-Fung Siu mailto:dsiu@adobe.com Advanced Technology Group @ Adobe Systems Incorporated %CVS% -d %CVS_DARG% -q diff -u -t -b -B -w lisp/ChangeLog lisp/gnus-sum.el Index: lisp/ChangeLog =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v retrieving revision 7.299 diff -u -t -b -B -w -r7.299 ChangeLog --- lisp/ChangeLog 20 May 2004 16:13:40 -0000 7.299 +++ lisp/ChangeLog 20 May 2004 19:30:05 -0000 @@ -1,3 +1,8 @@ +2004-05-20 Danny Siu + + * gnus-sum.el (gnus-summary-recenter): Summery buffer was not auto centered + even when gnus-auto-center-summary is t + 2004-05-20 TSUCHIYA Masatoshi * spam.el (spam-mark-spam-as-expired-and-move-routine): Return the Index: lisp/gnus-sum.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-sum.el,v retrieving revision 7.31 diff -u -t -b -B -w -r7.31 gnus-sum.el --- lisp/gnus-sum.el 20 May 2004 08:02:39 -0000 7.31 +++ lisp/gnus-sum.el 20 May 2004 19:26:27 -0000 @@ -6307,7 +6311,8 @@ ((< (window-height) 7) 1) (t (if (numberp gnus-auto-center-summary) gnus-auto-center-summary - 2)))) + (/ (1- (window-height)) 2)) + ))) (height (1- (window-height))) (bottom (save-excursion (goto-char (point-max)) (forward-line (- height))