Gnus development mailing list
 help / color / mirror / Atom feed
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Subject: Recentering bug in gnus-xmas - FIX
Date: 11 May 1996 19:08:51 +0200	[thread overview]
Message-ID: <y9l20krdtng.fsf@marvin.informatik.uni-tuebingen.de> (raw)


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)))


             reply	other threads:[~1996-05-11 17:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-11 17:08 Michael Sperber [Mr. Preprocessor] [this message]
1996-05-13 17:26 ` Mark Borges

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y9l20krdtng.fsf@marvin.informatik.uni-tuebingen.de \
    --to=sperber@informatik.uni-tuebingen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).