Article View: news.software.readers
Article #85022SLRN Macro Problem
From: Gary Denrael
Date: Mon, 01 Oct 2001 19:32
Date: Mon, 01 Oct 2001 19:32
40 lines
1754 bytes
1754 bytes
I am trying to implement my first macro in SLRN, and am
getting back an error that mark_spot is undefined. The
macro I am using was taken directly from the nn.sl file,
and I don't see a definition in there at all. My macro
file reads:
message ("Reading file: .slrn.sl");
define nn_tag_via_subject_regexp ()
{
variable str;
variable count = 0;
str = read_mini ("Tag subjects pattern", "", "");
!if (strlen (str))
return;
mark_spot ();
uncollapse_threads ();
while (re_fsearch_subject (str))
{
nn_tag_header ();
count++;
!if (header_down (1))
break;
}
collapse_threads ();
goto_spot ();
vmessage ("%d headers marked.", count);
}
definekey ("nn_tag_via_subject_regexp", "%", "article");
My .slrnrc file just has a simple interpret .slrn.sl
Thanks
Technical Details
Message-ID:
<slrn9rhh5e.93k.news@suzy.talentsinc.net>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!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!zeus.visi.com!news-out.visi.com!ruti.visi.com!newsShow Full Headers
Complete Article Headers
Message-ID: <slrn9rhh5e.93k.news@suzy.talentsinc.net> Subject: SLRN Macro Problem Date: Mon, 01 Oct 2001 19:32:05 GMT From: news@talentsinc.net (Gary Denrael) 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!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!zeus.visi.com!news-out.visi.com!ruti.visi.com!news Newsgroups: news.software.readers Reply-To: learned@talentsinc.net Followup-To: learned@talentsinc.net User-Agent: slrn/0.9.6.3 (Linux) Lines: 39 NNTP-Posting-Host: 24.31.22.76 X-Complaints-To: abuse@visi.com X-Trace: ruti.visi.com 1001964725 24.31.22.76 (Mon, 01 Oct 2001 14:32:05 CDT) NNTP-Posting-Date: Mon, 01 Oct 2001 14:32:05 CDT