🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1653

Re: Trying to write a (t)rn macro

#1653
From: Larry W. Virden
Date: Fri, 29 May 1992 17:27
29 lines
2197 bytes
The good news is that I have my C macro (which I plan on using to catch
up (t)rn's idea of number of unread articles) almost done.  The bad news
is that it works TOO well!  It is a recursive macro now, but I do not
seem to be able to determine that I am at the end of the newsrc - I could
hard code something, but would rather not.

Here is what I have - perhaps one of you hard working rn macroites could
help:

C	%(%m!=[ntap]?C:%(%m=n? ^(C^):%(%m=t?q^(C^):%(%m=[ap]?Mq^(C^)))))

Basically, it says that if the mode isnt newsgroup, thread, article selections
or pager selection, return a C.  If it is one of those, then emit the
character required to enter a group, quit thread selection, and if either
in pager or article selection, mark the current article and then quit.  Each
step then re-executes the macro.

Works great - except it goes on for ever!

The problem is that %m treats the End of newsgroups as a newsgroup
selection prompt, with apparently the same newsgroup name as the last
newsgroup examined.  It would be nice if it were given another name - but
I dont want to hack my own hacks into trn until i check for an existing
mechanism...
-- 
Larry W. Virden			UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg,OH 43068-1614
America Online: lvirden
Technical Details
Message-ID: <1992May29.173153.6376@cas.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!think.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ninja.csuohio.edu!csvaxd.csuohio.edu!news.uakron.edu!malgudi.oar.net!chemabs!lwv26
References: <1992May28.173705.1549@cas.org>

Show Full Headers
Complete Article Headers
Message-ID: <1992May29.173153.6376@cas.org>
Subject: Re: Trying to write a (t)rn macro
Date: Fri, 29 May 1992 17:27:12 GMT
From: lwv26@cas.org (Larry W. Virden)
References: <1992May28.173705.1549@cas.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!think.com!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ninja.csuohio.edu!csvaxd.csuohio.edu!news.uakron.edu!malgudi.oar.net!chemabs!lwv26
Newsgroups: news.software.readers
Reply-To: lvirden@cas.org (Larry W. Virden)
Sender: usenet@cas.org
Followup-To: news.software.readers
Organization: Nedriv Software and Shoe Shiners, Uninc.
Lines: 29