🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #79884

Re: [slrn] Slang Macros question

#79884
From: Pete Young
Date: Wed, 06 Jun 2001 08:37
34 lines
2310 bytes
J.B. Nicholson-Owens <jbn@forestfield.org> writes:

>current_newsgroup() returns the name of the group at the group mode cursor.
>Thus current_newsgroup() doesn't always coincide with where you are in
>article mode when you call current_newsgroup() from article mode.

Ah. After a bit more testing, I think this is the cause of my problem.
I first noticed things going awry when firing up the newsreader and
posting something from group mode.

>will (or should) get false positives if you post to any group with "ourco"
>
>   if (string_match (strlow (current_newsgroup ()), "^ourco\\.", 1))
>
>will only match if "ourco" (in a case-insensitive match due to the strlow())
>is the first 5 characters in the newsgroup name.  The double backslash will
>be reduced to a single backslash before string_match() sees the regular
>expression.

This is good advice and I've re-written the  macros to take account of
this, and also some suggestions from other posters in the thread.

I think I've fixed the problem. Many thanks to all the people who
replied in this thread.

Kind regards

Pete

-- 
  ____________________________________________________________________
  Pete Young            pete@antipope.org        
      "Just another crouton, floating on the bouillabaisse of life"
Technical Details
Message-ID: <slrn9hrqag.1ah.pete@cornfed.alien.bt.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!bt !pete
References: <slrn9hn3p7.sq4.pete@cornfed.alien.bt.co.uk> <slrn9hojhe.85.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9hrqag.1ah.pete@cornfed.alien.bt.co.uk>
Subject: Re: [slrn] Slang Macros question
Date: Wed, 06 Jun 2001 08:37:19 +0000
From: pete@antipope.org (Pete Young)
References: <slrn9hn3p7.sq4.pete@cornfed.alien.bt.co.uk> <slrn9hojhe.85.jbn@forestfield.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!bt !pete
Newsgroups: news.software.readers
Organization: No fixed abode
Lines: 33
Reply-To: pete@antipope.org
NNTP-Posting-Host: 132.146.172.160
X-Trace: pheidippides.axion.bt.co.uk 991816639 23422 132.146.172.160 (6 Jun 2001 08:37:19 GMT)
X-Complaints-To: postmaster@axion.bt.co.uk
NNTP-Posting-Date: 6 Jun 2001 08:37:19 GMT
User-Agent: slrn/0.9.5.7 (UNIX)