Article View: news.software.readers
Article #42744Re: [slrn] Preventing an S-Lang macro from aborting.
From: l... Lloyd Zusman
Date: Sun, 16 Aug 1998 00:00
Date: Sun, 16 Aug 1998 00:00
33 lines
1675 bytes
1675 bytes
On 16 Aug 1998 02:52:19 GMT, Dawn Owens-Nicholson <blue...@ux6.cso.uiuc.edu> wrote: > Lloyd Zusman <l...@asfast.com> wrote: > > Is there any way to modify this S-Lang macro so that it will > > automatically skip to the next article instead of aborting when this > > kind of error occurs? > > You could put an error block before the part of the function that might > fail, which looks like this line: > > > if (re_search_article (str)) > > [ ... ] > > I haven't tested this, but an ERROR_BLOCK might be what you're looking for. > > Hope this helps! Well, it at least runs successfully when there are no article-less headers. Now, all I have to do is to wait until my server serves up more of these items, and I can test this. But it certainly does look promising. Thanks! By the way, are there any archives of user-contributed S-Lang macros out there anywhere? -- Lloyd Zusman 01234567 <-- The world famous Indent-o-Meter. l...@asfast.com ^ Indent or be indented.
Technical Details
Message-ID:
<slrn6tcjq7.ke5.ljz@sunspot.tiac.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<lt7m09d7sr.fsf@asfast.com> <slrn6tcib1.gg3.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn6tcjq7.ke5.ljz@sunspot.tiac.net> Subject: Re: [slrn] Preventing an S-Lang macro from aborting. Date: Sun, 16 Aug 1998 00:00:00 +0000 From: l...@asfast.com (Lloyd Zusman) References: <lt7m09d7sr.fsf@asfast.com> <slrn6tcib1.gg3.bluemoon@ux6.cso.uiuc.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 381565901 Organization: As Fast Reply-To: l...@asfast.com (Lloyd Zusman) Newsgroups: alt.lang.s-lang,news.software.readers