Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: Re: The old high low face gambit
Date: Sun, 09 Dec 2001 00:48:45 -0800	[thread overview]
Message-ID: <m1y9kchj82.fsf@reader.newsguy.com> (raw)
In-Reply-To: <m3r8q5feiz.fsf@wolfram.com> (message of "Sat, 08 Dec 2001 18:00:52 -0600")

[NOTE: repost of something I butchered in some awful way due to heavy
local tinkerage.  Somehow ended up on ding with no subject]

Bill White <billw@wolfram.com> writes:

> On the Memorial of Saint Ambrose, 2001, at 14:23, Harry Putnam <reader@newsguy.com> said:
>
>> How can I get finer granularity than just `high' face and `low' face
>> on the basis of scoring?
>>
>> I mean something like a face for scores of 1, different for 5,
>> different yet above 10 etc.  (I have the default score set to 1)
>
> I tried this for a while but couldn't get a meaningful *and* pleasing
> *and* easy-to-read combination of colors.  After a while it just
> bugged me and I wound up ditching scoring altogether.  At any rate,
> here's the code I used:

Thanks bill, looks like what I was after.

[...]
Probably just my lack of lisp knowledgw but what about faces 50 thru
75?

Where do they come in?

And what, in general does the rest of it do?

> (setq gnus-summary-highlight
>   '(
>     ((and (<= score 100) (> score 0)) . my-gnus-face-80)
>     ((and (<= score 200) (> score 100)) . my-gnus-face-85)
>     ((and (<= score 300) (> score 200)) . my-gnus-face-90)
>     ((and (<= score 400) (> score 300)) . my-gnus-face-95)
>     ((> score 400) . my-gnus-face-100)
>     ((= mark gnus-canceled-mark)

I guess a blow by blow thing  is out of the question but it looks like
some kind of trick stuff is happening with lots of existing variables
like ancient face, default face etc.   Can I just ignore all that? I'm
thinking along the line of maybe 3-4 special scoring faces.

I'm thinking like adding a line with procmail, since I use procmail
anyway, to certain messages like:
X-Score: 5 

I'm thinking procmail because the reason for adding a scoring line may
change frequently and procmail lends itself to being chaned quickly
from the command line.  I can imaging scripting that would quickly
insert a rule to add X-Score: 10 to replies to a certain message for
example.

Then having scoring set up to find the 10 or whatever and set a face.
Similar for other higher/lower faces.

It would be one way to have followup scoring without invoking the
dreaded `adaptive' score files.



  reply	other threads:[~2001-12-09  8:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-07 20:23 Harry Putnam
2001-12-09  0:00 ` Bill White
2001-12-09  8:48   ` Harry Putnam [this message]
2001-12-09 22:45     ` Bill White

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1y9kchj82.fsf@reader.newsguy.com \
    --to=reader@newsguy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).