From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4516 Path: main.gmane.org!not-for-mail From: Sten Drescher Newsgroups: gmane.emacs.gnus.general Subject: Re: Using gnus-summary-number-of-articles-in-thread Date: 19 Dec 1995 13:13:18 -0600 Organization: Tandem Computers Sender: dreschs@mpd.tandem.com Message-ID: <5568fcvpdd.fsf@galil.austnsc.tandem.com> References: <55g2eh57wx.fsf@galil.austnsc.tandem.com> <199512191721.SAA10687@ssv4.dina.kvl.dk> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035145253 29897 80.91.224.250 (20 Oct 2002 20:20:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:20:53 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.6.11/8.6.9) with ESMTP id LAA05482 for ; Tue, 19 Dec 1995 11:56:47 -0800 Original-Received: from galil.austnsc.tandem.com (argyle.mpd.tandem.com [131.124.250.13]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Tue, 19 Dec 1995 20:11:56 +0100 Original-Received: (from dreschs@localhost) by galil.austnsc.tandem.com (8.7.1/8.7.1) id NAA12613; Tue, 19 Dec 1995 13:13:20 -0600 (CST) Original-To: ding@ifi.uio.no In-Reply-To: Per Abrahamsen's message of Tue, 19 Dec 1995 18:21:29 +0100 Original-Lines: 41 Xref: main.gmane.org gmane.emacs.gnus.general:4516 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4516 Per Abrahamsen said: PA> You could also use PA> gnus-thread-sort-by-total-score PA> and then set PA> gnus-thread-score-function PA> to some function taking the average. E.g> PA> (defun arithmetic-average (&rest numbers) PA> (/ (apply '+ numbers) (length numbers))) PA> (setq gnus-thread-score-function 'arithmetic-average) That won't work, because arithmetic-average won't get passed the entire list of scores, but the score of the parent and its sub-threads: --- gnus-thread-score-function's value is + Documentation: *Function used for calculating the total score of a thread. The function is called with the scores of the article and each subthread and should then return the score of the thread. --- This means that if there is a subthread of 20 articles averaging 5 (total 100), a subthread of 2 articles averaging 50 (100), and a parent of 100, arithmetic-average would return 32 instead of 13. -- #include /* 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