Gnus development mailing list
 help / color / mirror / Atom feed
* Recentering bug in gnus-xmas - FIX
@ 1996-05-11 17:08 Michael Sperber [Mr. Preprocessor]
  1996-05-13 17:26 ` Mark Borges
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Sperber [Mr. Preprocessor] @ 1996-05-11 17:08 UTC (permalink / 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)))


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-05-13 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-11 17:08 Recentering bug in gnus-xmas - FIX Michael Sperber [Mr. Preprocessor]
1996-05-13 17:26 ` Mark Borges

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