Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-score-find-score-files-function's documentation
@ 2001-07-18 21:50 Janne Rinta-Manty
  2001-07-28  0:46 ` ShengHuo ZHU
  2001-08-19 20:00 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Janne Rinta-Manty @ 2001-07-18 21:50 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-21 21:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-18 21:50 gnus-score-find-score-files-function's documentation Janne Rinta-Manty
2001-07-28  0:46 ` ShengHuo ZHU
2001-08-19 20:00 ` Lars Magne Ingebrigtsen
2001-08-20 14:35   ` Janne Rinta-Manty
2001-08-21 21:54     ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).