Article View: news.software.readers
Article #45890Re: [slrn] hook abort?
From: John E. Davis
Date: Tue, 12 Jan 1999 00:00
Date: Tue, 12 Jan 1999 00:00
22 lines
1387 bytes
1387 bytes
On Tue, 12 Jan 1999 11:33:12 GMT, Andrew Lord <lordy@see.reply.to>
wrote:
>I mean programtically, for exaple, if I'm writing a post_hook function
>but under certain conditions I want the hook to cause the overall
>posting action to fail.
Try:
define post_file_hook ()
{
.
.
if (something_wrong ())
error ("Aborting... Something wrong");
.
.
}
It will abort the macro and the posting function.
--John
Technical Details
Message-ID:
<slrn79n6lr.dq.davis@aluche.mit.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-mailReferences:
<916063118.19662.1.nnrp-10.c2d9f016@news.demon.co.uk> <slrn79l2i2.tqa.davis@aluche.mit.edu> <916140792.2074.0.nnrp-07.c2d9f016@news.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrn79n6lr.dq.davis@aluche.mit.edu> Subject: Re: [slrn] hook abort? Date: Tue, 12 Jan 1999 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <916063118.19662.1.nnrp-10.c2d9f016@news.demon.co.uk> <slrn79l2i2.tqa.davis@aluche.mit.edu> <916140792.2074.0.nnrp-07.c2d9f016@news.demon.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!not-for-mail X-Deja-AN: 431760896 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 916167356 5369 18.75.2.45 (12 Jan 1999 18:55:56 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: davis@space.mit.edu NNTP-Posting-Date: 12 Jan 1999 18:55:56 GMT Newsgroups: news.software.readers