Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: new feature request: highlights on scoring matches
Date: Fri, 24 Jan 2003 22:20:14 +0100	[thread overview]
Message-ID: <m3wuku6y9d.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <sdvg0i9gef.fsf@wanderer.hardakers.net>

Wes Hardaker <wes@hardakers.net> writes:

> Actually, I think eudora has the ability to color-code stuff based on
> expression.  That might be a easier way to pull it off.  Don't make it
> tied to scoring at all but make a general "highlight" set of
> expressions and face changes.  Then, the scoring regexps could be
> added to the more generic highlighting set if desired as well.

Hm...  These expressions would do nothing but highlight regions in
the summary buffer?  Yes, and then the scoring code could add more of
these matches to the mechanism, like you say.  Yes, that sounds a lot
cleaner than hacking up something in the scoring code itself.

Anyone want to take a whack at doing functionality for highlighting
regexps in the summary buffer?  It would probably make sense to do
this after the lines have been generated.

On the other hand, if the score rule is, say "^hello" on Subject,
just adding that to a list of highlighting regexps and running it
over the buffer won't match anything.  And there'll be misleading
matches between, say, Subject and From as displayed.

No, perhaps it isn't as simple as that.  The highlighting would have
to be applied before the strings are entered into the buffer.  That
could be done by transforming a copy of the header structure before
it is inserted into the buffer...

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



  reply	other threads:[~2003-01-24 21:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-21 14:48 Wes Hardaker
2003-01-21 23:03 ` Lars Magne Ingebrigtsen
2003-01-21 23:17   ` Andreas Fuchs
2003-01-22  0:26   ` Wes Hardaker
2003-01-22  0:28   ` Wes Hardaker
2003-01-24 21:20     ` Lars Magne Ingebrigtsen [this message]
2003-01-27 15:54       ` Wes Hardaker
2003-02-01 16:17         ` Lars Magne Ingebrigtsen
2003-02-04 17:05           ` Wes Hardaker
2003-02-07 12:33             ` Lars Magne Ingebrigtsen

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=m3wuku6y9d.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    /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).