Article View: news.software.readers
Article #227481Re: Per group settings in slrn
From: Troy Piggins
Date: Sun, 16 Nov 2008 20:08
Date: Sun, 16 Nov 2008 20:08
58 lines
3206 bytes
3206 bytes
* Carl Flippin wrote :
>
> Is it possible to change the highlighting of quoted material on a per
> group basis? One of my newsgroups is full of ascii art and it always
> highlights parts of the messages that it thinks are quotes and screws
> up the ascii art. I checked the documentation but only saw global
> settings. Any hints would be greatly appreciated.
By "change the highlighting", do you mean change the colour of
highlighting, or change the patterns that /cause/ the highlighting?
I assume the latter.
Interesting idea. You'd need a macro/hook to do that. Won't
work in base slrn.
The macro would just change your settings depending on what group
you enter. Let me think...
You need to set "ignore_quotes" on a group basis. Try this. I
hacked it from another macro of mine, but it's untested. you'll
need to change the "ascii" pattern as commented. I don't know
what pattern you want.
#v+
define quote_assign(q) {
variable cgp= current_newsgroup();
variable default_quote;
switch( cgp)
{ ( is_substr( cgp, "alt.ascii-art")): default_quote=
"ascii";}
{ default_quote= "default";}
if (0==strlen(q))
q= default_quote;
variable q_pattern;
switch( q)
{ case "default" :
q_pattern= "^ ? ?[><:=|]";
}
{ case "ascii" :
% change this pattern here to what you want
q_pattern= "^ ? ?[><:=|]";
}
{ message( "Error detecting identity");}
set_string_variable ("ignore_quotes", q_pattern);
}
#v-
--
Troy Piggins | http://piggo.com/~troy/slrn ___ | __ __
|___ | |/ |/ |
___| | | | |
Technical Details
Message-ID:
<20081117054701.259@usenet.piggo.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!85.214.105.209.MISMATCH!news.eternal-september.org!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mailReferences:
<slrngi0jsg.eh2.carlf@ubuntu.photocarl.org>Show Full Headers
Complete Article Headers
Message-ID: <20081117054701.259@usenet.piggo.com> Subject: Re: Per group settings in slrn Date: Mon, 17 Nov 2008 06:08:21 +1000 From: Troy Piggins <usenet-0811@piggo.com> References: <slrngi0jsg.eh2.carlf@ubuntu.photocarl.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!85.214.105.209.MISMATCH!news.eternal-september.org!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 58 Reply-To: usenet-0811@piggo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.motzarella.org U2FsdGVkX18RFcBX8jSt5zELZo/8VRIoPpiyG8MK/An3nCy8ixUadXpapNbBfO937vjWSDr4eVFwQKzq45VZKtaV33fievc45/6pNGa4k4p8dfincomgSb1mYtyJbJd41YGu1hyN1LQ= X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Sun, 16 Nov 2008 20:09:21 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+Bor6DnoLYe2itXF9icSotcQBIVoIHZq1V953Ih5RJEA== X-NNTP-Proxy: Leafnode-2 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/) Cancel-Lock: sha1:4bpLmSoUBU9gDTZry95rFw/ku/4= User-Agent: slrn/0.9.9p1/rt/co (GNU/Linux)