From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6192 Path: main.gmane.org!not-for-mail From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) Newsgroups: gmane.emacs.gnus.general Subject: Recentering bug in gnus-xmas - FIX Date: 11 May 1996 19:08:51 +0200 Sender: sperber@marvin.informatik.uni-tuebingen.de Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.52) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035146683 2821 80.91.224.250 (20 Oct 2002 20:44:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:44:43 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id KAA04196 for ; Sat, 11 May 1996 10:50:41 -0700 Original-Received: from macon.informatik.uni-tuebingen.de (macon.Informatik.Uni-Tuebingen.De [134.2.12.17]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Sat, 11 May 1996 19:08:56 +0200 Original-Received: from marvin.Informatik.Uni-Tuebingen.De by macon.informatik.uni-tuebingen.de (AIX 3.2/UCB 5.64/4.03) id AA19309; Sat, 11 May 1996 19:08:54 +0200 Original-Received: by marvin.informatik.uni-tuebingen.de (AIX 3.2/UCB 5.64/4.03) id AA24912; Sat, 11 May 1996 19:08:53 +0200 Original-To: ding@ifi.uio.no Original-Lines: 40 X-Mailer: September Gnus v0.80/XEmacs 19.14 Xref: main.gmane.org gmane.emacs.gnus.general:6192 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6192 Steve L Baur noticed this awhile ago. He wrote: >1. Setting gnus-auto-center-summary to t (the default) produces bogus > behavior on XEmacs 19.14 -- it warps the cursor off of the last > article in the *Summary* buffer all too often. This is due to the fact that window-height doesn't really report what you want. The patch is relative to 0.80. Our ftp gateway is shut down, so I'm not sure the bug's still there in the current sgnus Cheers =8-} Mike *** lisp/gnus-xmas.el~ Mon Apr 29 04:32:20 1996 --- lisp/gnus-xmas.el Sat May 11 19:03:36 1996 *************** *** 110,119 **** gnus-summary-selected-face)))) (defun gnus-xmas-summary-recenter () ! (let* ((top (cond ((< (window-height) 4) 0) ! ((< (window-height) 7) 1) (t 2))) ! (height (- (window-height) 2)) (bottom (save-excursion (goto-char (point-max)) (forward-line (- height)) (point))) --- 110,119 ---- gnus-summary-selected-face)))) (defun gnus-xmas-summary-recenter () ! (let* ((top (cond ((< (window-displayed-height) 4) 0) ! ((< (window-displayed-height) 7) 1) (t 2))) ! (height (- (window-displayed-height) 2)) (bottom (save-excursion (goto-char (point-max)) (forward-line (- height)) (point)))