From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37181 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-score-find-score-files-function's documentation Date: Fri, 27 Jul 2001 17:46:06 -0700 Message-ID: <2nzo9plw35.fsf@piglet.jia.vnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172641 12503 80.91.224.250 (21 Oct 2002 03:57:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:57:21 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 13820 invoked from network); 28 Jul 2001 00:48:52 -0000 Original-Received: from unknown (HELO zsh.2y.net) (131.241.79.246) by gnus.org with SMTP; 28 Jul 2001 00:48:52 -0000 Original-Received: (from zsh@localhost) by zsh.2y.net (8.11.2/8.11.2) id f6S0k7P23554; Fri, 27 Jul 2001 17:46:07 -0700 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: (Janne Rinta-Manty's message of "Thu, 19 Jul 2001 00:50:01 +0300") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 48 Xref: main.gmane.org gmane.emacs.gnus.general:37181 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37181 Janne Rinta-Manty writes: > 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? It isn't. Maybe Per or Lars know the story behind it. ShengHuo