🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Andrew Lord Mon, 11 Jan 1999 00:00
[slrn] hook abort?
#45874
Author: Andrew Lord
Date: Mon, 11 Jan 1999 00:00
7 lines
832 bytes
Can you make the hook functions interrupt the execution of the action.
eg abort etc? If yes how?

rgds,
Andy L.

Re: [slrn] hook abort?
#45848
Author: John E. Davis
Date: Mon, 11 Jan 1999 00:00
11 lines
1099 bytes
On Mon, 11 Jan 1999 13:58:38 GMT, Andrew Lord <lordy@see.reply.to>
wrote:
>Can you make the hook functions interrupt the execution of the action.
>eg abort etc? If yes how?

You have to be more specific.  Ctrl-G will cause the execution of a
slang macro to abort.

--John

Re: [slrn] hook abort?
#45890
Author: John E. Davis
Date: Tue, 12 Jan 1999 00:00
22 lines
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

Re: [slrn] hook abort?
#45896
Author: Andrew Lord
Date: Tue, 12 Jan 1999 00:00
24 lines
1476 bytes
On 11 Jan 1999 23:33:24 GMT, John E. Davis <davis@space.mit.edu> wrote:
>On Mon, 11 Jan 1999 13:58:38 GMT, Andrew Lord <lordy@see.reply.to>
>wrote:
>>Can you make the hook functions interrupt the execution of the action.
>>eg abort etc? If yes how?
>
>You have to be more specific.  Ctrl-G will cause the execution of a
>slang macro to abort.
>
>--John

Hi,

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.


-- 
               Andy Lord  mailto:lordy@bigfoot.com
             http://members.tripod.com/~alord/psion/


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads