[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What "eval" means in score files?
From: |
Teemu Likonen |
Subject: |
Re: What "eval" means in score files? |
Date: |
Fri, 29 Jan 2010 21:11:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
* 2010-01-29 11:53 (-0600), Ted Zlatanov wrote:
> On Thu, 21 Jan 2010 06:11:13 +0200 Teemu Likonen <tlikonen@iki.fi> wrote:
>> Gnus manual says in "(Gnus) Score File Format":
>> `eval'
>> The value of this entry will be `eval'el. This element will be
>> ignored when handling global score files.
>
>> Then what? What should the entry evaluate to? How does Gnus interpret
>> the result of evaluation? How can I use it with scoring?
>
> Nothing else in the score file is actually eval-ed, so you're limited
> to literal statements. It's like writing a function without macros.
> With an eval clause in the score file you can generate any of the
> other keys, including a string key which maps to a header. It's like
> an in-place macro.
Thanks, that's the kind of feature I'm looking for. So, if I understand
correctly, score file
((eval '("from"
("Author <...>" 1000 nil e))))
should be effectively equivalent with score file
(("from"
("Author <...>" 1000 nil e)))
But it's not. The score file which uses "eval" has no effect. Could you
(or someone) please give some simple example on how to use it?