🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by surtin Sun, 25 May 2003 09:43
[slrn] OE Quote Fix macro & other misc things...
#125363
Author: surtin
Date: Sun, 25 May 2003 09:43
21 lines
2337 bytes
First off I want to thank whoever (if anyone) who answers this little question
of mine.

Basically I have the oe quote fixing macro and I see in oe_quot.sl that the
default key is ESC q, but when pushing that combo of buttons all I hear is a
system beep. So I'm wondering if in fact this is a slrn macro like it said on
the page or a mis-labeled jed macro (which wouldn't work for me anyways since
I'm using gvim anyways). I know it's not really an important thing at all,
more of a cosmetic thing, but what can I say -- I'm even image conscious
online.

Also I was wondering if there were any other useful config settings or macro's
out there that I should check out. Surely the more seasoned users of slrn have
some things that I probably have no idea about, that would be useful to me
(and to whoever reads this).

Thanks n such.

-- 
A robin red breast in a cage sends all of heaven in a rage...
Re: [slrn] OE Quote Fix macro & other misc things...
#125380
Author: surtin
Date: Sun, 25 May 2003 19:03
47 lines
3523 bytes
On Sun, 25 May 2003 11:34:34 GMT, ras2 wrote:
> It is for slrn. Oddly enough, I can't find a misquoted OE post right now,
> but I have had oe_quot.sl installed for a year or two and it works when
> I remember I have it (I killfile OE posts in a number of groups, so I
> don't see that much misquoting anymore).
> 
> I don't know why it would beep... Do you press ESC and q at the same
> time? In slrn, you first hit ESC (it will say "ESC-" in the info line
> at the bottom of the screen) and then q.
> Otherwise, you might check if you have something else that also uses
> ESC q.
> 

I got the macro to work, seems I forgot to add a setkey in my slrnrc...

> 
> mh. That's a bit difficult without knowing what you need and what you are
> already doing.
> 
> One obvious thing, that took me some years to discover, is this:
> 
> define gq_view_article ()                                                
> {                                                                            
>     pipe_article ("uudeview +e +o -a -c -i - | gqview -l");                     
> }                                                                    
> definekey ("gq_view_article", "1", "article");  
> 
> (the macro type more than the actual macro).
> 
> When I hit "1", it pipes the current article to uudeview which decodes any
> attachments and sends them to gqview. It's very simple (it should perhaps
> have some error checking, but I don't really know what I'm doing and it
> works well enough anyway), but also very useful and can be easily modified
> to do something else; I have another that saves URLs in the article, one 
> that launches an editor with the scorefile loaded (so I can edit it while
> I read news) and one that saves spam to a specific mbox file.
> 
> Aside from "pipe_article", you can also use "system" and 
> "append_article_save" (and probably some others I haven't
> found yet).

Hrm thanks for the macro, it might come in handy sometime. :)


-- 
A robin red breast in a cage sends all of heaven in a rage...
Re: [slrn] OE Quote Fix macro & other misc things...
#125389
Author: J.B. Moreno
Date: Sun, 25 May 2003 21:56
26 lines
2103 bytes
ras2 <removethis@gmx.net> wrote:

> On 2003-05-25 09:43:43 GMT, surtin 
>  <surtin@you.really.dont.need.to.message.me.org> wrote in 
>   <slrnbd13ki.mhd.surtin@dsl093-187-082.chi2.speakeasy.net>:
> 
> > Basically I have the oe quote fixing macro and I see in oe_quot.sl
> > that the default key is ESC q, but when pushing that combo of buttons
> > all I hear is a system beep. So I'm wondering if in fact this is
> > a slrn macro like it said on the page or a mis-labeled jed macro
> > (which wouldn't work for me anyways since I'm using gvim anyways).
> 
> It is for slrn. Oddly enough, I can't find a misquoted OE post right now,
> but I have had oe_quot.sl installed for a year or two and it works when
> I remember I have it (I killfile OE posts in a number of groups, so I
> don't see that much misquoting anymore).

Here's several /followups/ to OE's misquoted articles:
 <3ED0537A.26201091@avalon.net>
 <3ECFFB83.68C9@telusplanet.net>
 <884b7c04.0305251041.4f98a48a@posting.google.com>

-- 
JBM
"Everything is futile." -- Marvin of Borg
Re: [slrn] OE Quote Fix macro & other misc things...
#125397
Author: surtin
Date: Mon, 26 May 2003 02:56
13 lines
1919 bytes
Er I guess I'm turning this into my own little "got tips for slrn" thread (and
if there is already one that's recent please do point me in the right
direction). 

In any case I was wondering if there was something I could put
into my slrnrc to make it so that when people use smiles (et al :) :() slrn
doesn't count it as a quote.

Thanks yet again.

-- 
A robin red breast in a cage sends all of heaven in a rage...
Improving S-Lang regular expressions to get slrn to match quoted lines
#125400
Author: J.B. Nicholson-Owens
Date: Mon, 26 May 2003 05:27
19 lines
1942 bytes
surtin wrote:
> I guess I'm turning this into my own little "got tips for slrn" thread [...]

I encourage you to change the Subject: header to match the topic.  That
increases the chance people looking for these posts in archives will find
them when they search by keyword.  Be as specific as you can.  You might not
have been able to come up with the Subject: header I've used here, which
requires knowing what a regular expression and S-Lang are, but you can help
by changing it as you learn more.

> In any case I was wondering if there was something I could put into my
> slrnrc to make it so that when people use smiles (et al :) :() slrn
> doesn't count it as a quote.

I'd say the best approach is to learn about regular expressions and
construct a set of them that only identify quoted lines.  If you show us
what regular expressions you're using to identify quoted lines, perhaps we
can help you improve them for your needs.
Re: Improving S-Lang regular expressions to get slrn to match quoted lines
#125403
Author: surtin
Date: Mon, 26 May 2003 07:50
16 lines
2330 bytes
On 26 May 2003 05:27:50 GMT, J.B. Nicholson-Owens wrote:
> I'd say the best approach is to learn about regular expressions and
> construct a set of them that only identify quoted lines.  If you show us
> what regular expressions you're using to identify quoted lines, perhaps we
> can help you improve them for your needs.

The regular expressions used for my quoting right now are the default ones
slrn already uses for ignore_quotes, so that's... ><:=| correct? So maybe if I
set the ignore_quote with those witout :, it'd work somewhat like I want; or
is there some better way that you or someone else knows and would like to
share... ?


-- 
A robin red breast in a cage sends all of heaven in a rage...
Re: Improving S-Lang regular expressions to get slrn to match quoted lines
#125423
Author: Andrew Preater
Date: Mon, 26 May 2003 19:48
22 lines
2222 bytes
* surtin <surtin@you.really.dont.need.to.message.me.org>:
> The regular expressions used for my quoting right now are the
> default ones slrn already uses for ignore_quotes, so that's... ><:=|
> correct?

There are plenty of examples floating around on the Net -- look for
sample slrnrcs.  Mine needs a spring clean so I've these spare:

 %ignore_quotes "^ ? ?[A-Za-z0-9]*[]-|>#:)}=+%>]" % Too aggressive
 %ignore_quotes "^[>|#:][>|#: ]"                  % Not aggressive enough!
 %ignore_quotes "^ ? ?[]-|>#:)}=+%>]"             % Sven's.

ignore_quotes "^ *[a-zA-Z-]*>" "^ *[\]|)]" "^ *:[^-()^]"
 % From Tomasz Sienicki.  Doesn't catch lines starting with a :)

IMO the last one is just right.  Other stuff at "tsca's S-Lang page":
http://www.geocities.com/tsca.geo/slang.html but I guess you already
know about that. :)

-- 
Andrew Preater
Re: Improving S-Lang regular expressions to get slrn to match quoted lines
#125425
Author: J.B. Nicholson-Owens
Date: Mon, 26 May 2003 20:30
27 lines
2294 bytes
surtin wrote:
> The regular expressions used for my quoting right now are the default ones
> slrn already uses for ignore_quotes [...]

Yes, and you should post the entire ignore_quotes line so people can help
you by seeing what's going on in context.

> [...] so that's... ><:=| correct?

Not completely; it looks like you took some characters out of the
ignore_quotes line you thought were relevant and posted them.  "><:=|" is a
regular expression that will not match any quote line currently in use.  I'm
guessing you didn't actually use that as-is in your ignore_quotes line.
Typically ignore_quotes regular expressions involve some form of alternation
(like a character class "[abc]" meaning a, b, or c).

> So maybe if I set the ignore_quote with those witout :, it'd work somewhat
> like I want; or is there some better way that you or someone else knows and
> would like to share... ?

Experimentation with regular expressions is useful, but not if you don't
know how regular expressions work.  You should look up some help texts on
the subject and read them then try altering the regular expressions in the
ignore_quotes line.

Happy hacking.
Re: Improving S-Lang regular expressions to get slrn to match quoted lines
#125463
Author: surtin
Date: Tue, 27 May 2003 16:02
16 lines
2230 bytes
On Mon, 26 May 2003 20:48:15 +0100, Andrew Preater wrote:
> IMO the last one is just right.

Yup that's the one that I was lookin' for! Thanks.

>Other stuff at "tsca's S-Lang page": 
>http://www.geocities.com/tsca.geo/slang.html but I guess you already know
>about that. :)

Obviously I didn't poke around it too much because I didn't see that
ignore_quote mentioned when I looked. Guess I'll look around it for anything
else that might be useful. :)

-- 
A robin red breast in a cage sends all of heaven in a rage...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads