From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4511 Path: main.gmane.org!not-for-mail From: Sten Drescher Newsgroups: gmane.emacs.gnus.general Subject: Using gnus-summary-number-of-articles-in-thread Date: 19 Dec 1995 10:34:54 -0600 Organization: Tandem Computers Sender: dreschs@mpd.tandem.com Message-ID: <55g2eh57wx.fsf@galil.austnsc.tandem.com> 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 1035145249 29881 80.91.224.250 (20 Oct 2002 20:20:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:20:49 +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 JAA04427 for ; Tue, 19 Dec 1995 09:21:37 -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 17:33:36 +0100 Original-Received: (from dreschs@localhost) by galil.austnsc.tandem.com (8.7.1/8.7.1) id KAA11290; Tue, 19 Dec 1995 10:34:57 -0600 (CST) Original-To: ding@ifi.uio.no Original-Lines: 23 Xref: main.gmane.org gmane.emacs.gnus.general:4511 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4511 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 /* 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