🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #49040

Re: [slrn macro] End of Thread?

#49040
From: Dawn Owens-Nicholson
Date: Thu, 03 Jun 1999 00:00
37 lines
2178 bytes
Thomas Schultz wrote:
> Thank you; with your help, I finally was able to write a macro that
> will go to the next article which matches a given condition without
> changing the toggled-/untoggled-status of the threads:

You might be interested in <slrn7hde4b.4in.bluemoon@ux6.cso.uiuc.edu> which
does something quite similar but for article ranges bounded by the
number-tagged headers.  To process the entire group, you could place a #1
tag at the topmost header and

   TagAction->between_tags_do (&TagAction->sample_function);

to see what will happen.  TagAction->between_tags_do() processes articles
between numeric tags, TagAction->on_tags_do() processes only numerically
tagged articles.  The documentation shows how these work.

> An example of its use is the following function that will go to the
> next article which has a positive score:

I suggest using the intrinsic functions as much as possible because they're
so much faster.  Your example could be done another way that will scale
better in larger groups:

define next_pos_score ()
{
   ERROR_BLOCK
     {
	_clear_error ();                         % clear the original error.
	error ("No more articles with a positive score.");
     }
   call ("next_high_score");                     % default keybinding: "!"
}

The referenced article can be found:
http://www.deja.com/=dnc/msgid.xp?MID=%3Cslrn7hde4b.4in.bluemoon@ux6.cso.uiuc.edu%3E

Technical Details
Message-ID: <slrn7le4md.2p5.bluemoon@ux6.cso.uiuc.edu>
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!not-for-mail
References: <slrn7ku79b.16m.tststs@starflower.tststs.ddns.org> <slrn7l103g.qd8.bluemoon@ux6.cso.uiuc.edu> <slrn7ld83l.u9.tststs@starflower.tststs.ddns.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7le4md.2p5.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: [slrn macro] End of Thread?
Date: Thu, 03 Jun 1999 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn7ku79b.16m.tststs@starflower.tststs.ddns.org> <slrn7l103g.qd8.bluemoon@ux6.cso.uiuc.edu> <slrn7ld83l.u9.tststs@starflower.tststs.ddns.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!not-for-mail
X-Deja-AN: 485462115
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.5.6 (UNIX)
Newsgroups: news.software.readers