Gnus development mailing list
 help / color / mirror / Atom feed
* Using gnus-summary-number-of-articles-in-thread
@ 1995-12-19 16:34 Sten Drescher
  1995-12-19 17:21 ` Per Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Sten Drescher @ 1995-12-19 16:34 UTC (permalink / raw)


	I'm attempting to create the function
gnus-thread-sort-by-average-score (to deal with those threads that
rocket to the top of the total-score sort because the couple of articles
I read ballooned into a monster thread of 50 kazillon postings) as follows:

(defun gnus-thread-sort-by-average-score (h1 h2)
  "Sort threads by the average of all scores in the thread.
Unscored articles will be counted as having a score of zero."
  (>
   ( / (gnus-thread-total-score h1)
       (gnus-summary-number-of-articles-in-thread h1))
   ( / (gnus-thread-total-score h2)
       (gnus-summary-number-of-articles-in-thread h2))))

	Problem is, while gnus-thread-total-score returns the score,
gnus-summary-number-of-articles-in-thread is returning zero!  What am I
doing wrong here?

-- 
#include <disclaimer.h>				/* Sten Drescher */
To get my PGP public key, send me email with your public key and
	Subject: PGP key exchange
Key fingerprint =  90 5F 1D FD A6 7C 84 5E  A9 D3 90 16 B2 44 C4 F3


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

end of thread, other threads:[~1995-12-19 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-12-19 16:34 Using gnus-summary-number-of-articles-in-thread Sten Drescher
1995-12-19 17:21 ` Per Abrahamsen
1995-12-19 19:13   ` Sten Drescher

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