From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36960 Path: main.gmane.org!not-for-mail From: Janne Rinta-Manty Newsgroups: gmane.emacs.gnus.general Subject: gnus-score-find-score-files-function's documentation Date: Thu, 19 Jul 2001 00:50:01 +0300 Sender: rintaman@cdr.offline Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035172458 11352 80.91.224.250 (21 Oct 2002 03:54:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:54:18 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 2580 invoked from network); 20 Jul 2001 06:39:46 -0000 Original-Received: from porsta.cs.helsinki.fi (root@128.214.48.124) by gnus.org with SMTP; 20 Jul 2001 06:39:46 -0000 Original-Received: from cdr (dhau.in.helsinki.fi [128.214.189.2]) by porsta.cs.Helsinki.FI (8.11.3/8.11.3) with ESMTP id f6ILp4G29089 for ; Thu, 19 Jul 2001 00:51:04 +0300 Original-Received: by cdr via sendmail from stdin id (Debian Smail3.2.0.102) for ding@gnus.org; Thu, 19 Jul 2001 00:50:02 +0300 (EEST) Original-To: ding@gnus.org User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 Original-Lines: 45 Xref: main.gmane.org gmane.emacs.gnus.general:36960 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36960 C-h v gnus-score-find-score-files-function: [...] This variable can also be a list of functions to be called. Each function is given the group name as argument and should either return a list of score files, or a list of score alists. [...] "Score alist" means the form found in .SCORE files, right? Like: (((and ("from" "foo" s) ("subject" "bar" s)) -100)) And a list of those would be: ((((and ("from" "foo" s) ("subject" "bar" s)) -100))) OK, let's try it: (setq gnus-score-find-score-files-function `(,(lambda (group) `((((and ("from" "foo" s) ("subject" "bar" s)) -100)))) gnus-score-find-bnews)) Select a group => Wrong type argument: listp, -100. Gnus wants another level of parens around the score alist: (setq gnus-score-find-score-files-function `(,(lambda (group) `(((((and ("from" "foo" s) ("subject" "bar" s)) -100))))) gnus-score-find-bnews)) works, but this isn't what the documentation says. Or am I dreaming? -- Janne Rinta-Mänty