From: Wes Hardaker <wes@hardakers.net>
Cc: Michael Baer <baerm@tislabs.com>
Subject: new feature implemented: highlighting by regexp
Date: Mon, 23 Jun 2003 14:46:09 -0700 [thread overview]
Message-ID: <sdvfuw79i6.fsf@wanderer.hardakers.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]
I'm attaching code I've been tinkering with for a while and it seems to
be doing just fine. Basically, it allows you to add highlighting
expressions to both summary and article buffer display. Because gnus
is in a feature freeze, it is entirely self-contained and requires no
patches to gnus to make it work. Eventually it probably should add
the treatment functions directly to the list in gnus-art.el, but since
I'm assuming it "wouldn't be prudent at this juncture" to check it
into CVS the code should probably not require a patch to gnus-art.el
at this point. In the mean time, adding (require 'gnus-highlight) to
your .gnus file should be enough to enable it.
I'm interested in any feedback, of course...
There is no info documentation yet, but the variable descriptions
should be adequate enough to get you started.
FYI, I've only checked this under xemacs but I'm sure it's likely to
work without problems under emacs as there is nothing emacs specific
in it. If the emacs users want to double check it for me, I'd
appreciate it.
Note: you can do cool highlighting using summary buffer bbdb marks and
this. eg, I have a expression in use that looks like:
("^......[^EOR].\\+[^[]*\\[\\([^]]+\\)\\]" . "#b0e0ff")
Which highlights any authors name in a light purple who exists in my
.bbdb (the \\+ in the regexp) and the article is not read, expired or
old (the [^EOR]). The rest of the expression selects the [.*] that
marks the author's name within the line.
--
"In the bathtub of history the truth is harder to hold than the soap,
and much more difficult to find." -- Terry Pratchett
[-- Attachment #2: gnus-highlight.el --]
[-- Type: application/emacs-lisp, Size: 8161 bytes --]
next reply other threads:[~2003-06-23 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-23 21:46 Wes Hardaker [this message]
2003-10-17 23:40 ` 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=sdvfuw79i6.fsf@wanderer.hardakers.net \
--to=wes@hardakers.net \
--cc=baerm@tislabs.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).