* 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
* Re: gnus-score-find-score-files-function's documentation
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
1 sibling, 0 replies; 5+ messages in thread
From: ShengHuo ZHU @ 2001-07-28 0:46 UTC (permalink / raw)
Janne Rinta-Manty <rintaman@cs.Helsinki.FI> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnus-score-find-score-files-function's documentation
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
1 sibling, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-08-19 20:00 UTC (permalink / raw)
Janne Rinta-Manty <rintaman@cs.helsinki.fi> writes:
> "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)))
Yes...
[...]
> Select a group => Wrong type argument: listp, -100.
>
> Gnus wants another level of parens around the score alist:
I think this is a bug in `gnus-score-load-files'. Shall I fix the
bug, or document this into a feature?
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnus-score-find-score-files-function's documentation
2001-08-19 20:00 ` Lars Magne Ingebrigtsen
@ 2001-08-20 14:35 ` Janne Rinta-Manty
2001-08-21 21:54 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Janne Rinta-Manty @ 2001-08-20 14:35 UTC (permalink / raw)
Lars Magne Ingebrigtsen 2001-08-19T20:00:49Z:
> Janne Rinta-Manty <rintaman@cs.helsinki.fi> writes:
>> Gnus wants another level of parens around the score alist:
> I think this is a bug in `gnus-score-load-files'. Shall I fix the
> bug, or document this into a feature?
I don't know, whichever.
--
Janne Rinta-Mänty
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gnus-score-find-score-files-function's documentation
2001-08-20 14:35 ` Janne Rinta-Manty
@ 2001-08-21 21:54 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-08-21 21:54 UTC (permalink / raw)
Janne Rinta-Manty <rintaman@cs.Helsinki.FI> writes:
>> I think this is a bug in `gnus-score-load-files'. Shall I fix the
>> bug, or document this into a feature?
>
> I don't know, whichever.
I'll document it, then.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ 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).