From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43247 Path: main.gmane.org!not-for-mail From: IPmonger Newsgroups: gmane.emacs.gnus.general Subject: Help with Adaptive Scoring Problems (2nd try) Date: Thu, 21 Feb 2002 19:13:16 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178370 16558 80.91.224.250 (21 Oct 2002 05:32:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:32:50 +0000 (UTC) Return-Path: Original-Received: (qmail 21014 invoked from network); 22 Feb 2002 15:32:30 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 22 Feb 2002 15:32:30 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16eHeB-0007sK-00; Fri, 22 Feb 2002 09:30:07 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 22 Feb 2002 09:30:06 -0600 (CST) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA02493 for ; Fri, 22 Feb 2002 09:29:59 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id g1MFTtl17034 for ding@hpc.uh.edu; Fri, 22 Feb 2002 09:29:55 -0600 Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id SAA29885 for ; Thu, 21 Feb 2002 18:13:35 -0600 (CST) Original-Received: (qmail 13557 invoked by alias); 22 Feb 2002 00:13:31 -0000 Original-Received: (qmail 13552 invoked from network); 22 Feb 2002 00:13:31 -0000 Original-Received: from cornelius.delamancha.org (216.7.21.38) by gnus.org with SMTP; 22 Feb 2002 00:13:31 -0000 Original-Received: (from ipmonger@localhost) by cornelius.delamancha.org (8.11.6/8.11.6) id g1M0DGv13702; Thu, 21 Feb 2002 19:13:16 -0500 X-Authentication-Warning: cornelius.delamancha.org: ipmonger set sender to ipmonger@delamancha.org using -f Original-To: Gnus Mailing List Original-Lines: 50 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.5 (bamboo, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43247 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43247 Folks, I thought I sent this late last night, but I haven't seen it go through yet, so here goes... I used to use the following adaptive-score-alist: (defvar gnus-default-adaptive-score-alist '((gnus-unread-mark (thread 10)) (gnus-ticked-mark (from 4)) (gnus-dormant-mark (from 5)) (gnus-del-mark (from -4) (subject -1) (thread -1)) (gnus-read-mark (from 4) (subject 2) (thread 25)) (gnus-expirable-mark) (gnus-killed-mark (from -10) (subject -3)) (gnus-kill-file-mark) (gnus-ancient-mark) (gnus-low-score-mark) (gnus-catchup-mark (from -1) (subject -1)))) But, when I set it up this way now, the (thread ) entries cause an Elisp error when I attempt to exit a group. gnus-score-adaptive() converts the above alist into a list which contains functions in one of two forms: either (lambda ....) lists or the original (tag arg) list. This conversion begins on line 2208 of gnus-score.el. The test to convert to a (lambda ...) list is to append the scoring tag name to "message-header-" and then to look up the symbol in obarray via a call to intern. the symbol 'message-header-thread is not predefined, so (intern "message-header-thread") returns a symbol that is unbound. This, in turn, means that the list (thread ) is *not* converted to a (lambda ...) list. Later, at line 2227 of gnus-score.el, we try to use the scoring functions. We do this by using (funcall (caar elem) headers). This means that we end up trying to call the function #'thread which doesn't exist! Where is this supposed to be set up? I did check the info files and you are supposed to be able to score adaptively by thread, so I think that this is a bug. -IPmonger -- ------------------ IPmonger ipmonger@delamancha.org CCIE #8338