Article View: news.software.readers
Article #227482Re: Per group settings in slrn
From: Troy Piggins
Date: Sun, 16 Nov 2008 20:17
Date: Sun, 16 Nov 2008 20:17
76 lines
3731 bytes
3731 bytes
* Troy Piggins wrote :
> * 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.
Just had another look at this, and had a residual variable in
there not needed for your macro. Make these changes:
> #v+
> define quote_assign(q) {
define quote_assign() {
^^^^
Get rid of "q" here
> 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;
^^^^^^^^^^^^^^^^^^^^^
Delete these 2 lines.
> variable q_pattern;
>
> switch( q)
switch( default_quote)
^^^^^^^^^^^^^^^^
Change this.
> { 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:
<20081117061317.946@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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.eternal-september.org!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mailReferences:
<slrngi0jsg.eh2.carlf@ubuntu.photocarl.org> <20081117054701.259@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <20081117061317.946@usenet.piggo.com> Subject: Re: Per group settings in slrn Date: Mon, 17 Nov 2008 06:17:51 +1000 From: Troy Piggins <usenet-0811@piggo.com> References: <slrngi0jsg.eh2.carlf@ubuntu.photocarl.org> <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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!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: 76 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 U2FsdGVkX1+WSKouijWz39qPpbg+Bd0ycCOruO/Y4U94fqYvoiAxbJdl1kOFYfb1BhxyVyPY5GpO6SMnZZpTxqC9z5TxQedRhC+iUD9SrhhmxZXQB0BGpXS2Jd47sRFdTSo7pRseM1k= X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Sun, 16 Nov 2008 20:18:02 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19gjCo89Dl0trdQ20z39Xbq4ORz6AJ3WO2p7FqevCT/hA== X-NNTP-Proxy: Leafnode-2 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/) Cancel-Lock: sha1:3dZygX24+TWyq2v5PHJneDv2koQ= User-Agent: slrn/0.9.9p1/rt/co (GNU/Linux)