Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] gnus-summary-auto-center in gnus-xmas.el
@ 1998-12-13  6:25 Lloyd Zusman
  0 siblings, 0 replies; only message in thread
From: Lloyd Zusman @ 1998-12-13  6:25 UTC (permalink / raw)


In one of the fairly recent pgnus upgrades, Lars made a change in the
`gnus-summary-recenter' routine to allow the use of an optional
numeric value for the `gnus-summary-auto-center' variable.

It seems that the corresponding change also has to be made in
`gnus-xmas.el' in the `gnus-xmas-summary-recenter' routine.  The
enclosed patch to pgnus-0.65 takes care of this case.


*** gnus-xmas.el.orig	Sun Dec 13 01:12:54 1998
--- gnus-xmas.el	Sun Dec 13 01:12:55 1998
***************
*** 181,187 ****
  		     (- (window-height) 2)))
  	   (top (cond ((< height 4) 0)
  		      ((< height 7) 1)
! 		      (t 2)))
  	   (bottom (save-excursion (goto-char (point-max))
  				   (forward-line (- height))
  				   (point)))
--- 181,189 ----
  		     (- (window-height) 2)))
  	   (top (cond ((< height 4) 0)
  		      ((< height 7) 1)
! 		      (t (if (numberp gnus-auto-center-summary)
! 			     gnus-auto-center-summary
! 			   2))))
  	   (bottom (save-excursion (goto-char (point-max))
  				   (forward-line (- height))
  				   (point)))


-- 
 Lloyd Zusman
 ljz@asfast.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-13  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-13  6:25 [PATCH] gnus-summary-auto-center in gnus-xmas.el Lloyd Zusman

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