Lisp HUG Maillist Archive

:top-level-hook

It appears that :top-level-hook is ignored in LispWorks for Macintosh.

I have an application which requires establishing handlers for 
conditions we use to indicate that the underlying data substrate has 
changed.  Also, we'll want to wrap a handler to trap all errors and 
react gracefully in the delivered application.

Does anyone have suggestions on what to do in this case?

   - Gary


Re: :top-level-hook

Unable to parse email body. Email id is 2078

Re: :top-level-hook

At 3:28 PM +0000 3/22/04, davef@xanalys.com wrote:
>    It appears that :top-level-hook is ignored in LispWorks for Macintosh.
>
>    I have an application which requires establishing handlers for
>    conditions we use to indicate that the underlying data substrate has
>    changed.  Also, we'll want to wrap a handler to trap all errors and
>    react gracefully in the delivered application.
>
>    Does anyone have suggestions on what to do in this case?
>
>You could try setting *DEBUGGER-HOOK* or bind it via
>MP:*PROCESS-INITIAL-BINDINGS*.

Using *DEBUGGER-HOOK* won't work for the conditions we use as they're 
signalled via SIGNAL, not ERROR (or CERROR).

Will using MP:*PROCESS-INITIAL-BINDINGS* affect the Cocoa event 
processor process if I modify it before saving an image (either by 
SAVE-IMAGE or DELIVER)?

Is there any chance of making :TOP-LEVEL-HOOK work on the Mac?

   - Gary Palter
     Principal Software Engineer
     Clozure Associates
     Cell:  617-947-0536


Re: :top-level-hook

Unable to parse email body. Email id is 2093

Re: :top-level-hook

At 1:47 PM +0000 3/23/04, davef@xanalys.com wrote:
>    >    It appears that :top-level-hook is ignored in LispWorks for Macintosh.
>    >
>    >    I have an application which requires establishing handlers for
>    >    conditions we use to indicate that the underlying data substrate has
>    >    changed.  Also, we'll want to wrap a handler to trap all errors and
>    >    react gracefully in the delivered application.
>    >
>    >    Does anyone have suggestions on what to do in this case?
>    >
>    >You could try setting *DEBUGGER-HOOK* or bind it via
>    >MP:*PROCESS-INITIAL-BINDINGS*.
>
>    Using *DEBUGGER-HOOK* won't work for the conditions we use as they're
>    signalled via SIGNAL, not ERROR (or CERROR).
>
>Perhaps you will need to consider changing that. Otherwise I suppose
>you could force entry into the debugger by setting *BREAK-ON-SIGNALS*,
>but that's rather gross.
>
>    Will using MP:*PROCESS-INITIAL-BINDINGS* affect the Cocoa event
>    processor process if I modify it before saving an image (either by
>    SAVE-IMAGE or DELIVER)?
>
>No, because
>
>a) MP:*PROCESS-INITIAL-BINDINGS* is used only at process creation
>time, and
>
>b) In any case, you can't do SAVE-IMAGE or DELIVER after the Cocoa
>Event Loop process has started.
>
>    Is there any chance of making :TOP-LEVEL-HOOK work on the Mac?
>
>Not in this release. We'd need per-interface multiprocessing for
>that. This feature is on the wish list for a future release but is not
>currently scheduled.

Thanks for the information.

Consider this a request to schedule per-interface multiprocessing 
sooner (i.e., next release) rather than later.

   - Gary Palter
     Principal Software Engineer
     Clozure Associates
     Cell:  617-947-0536


Updated at: 2020-12-10 08:57 UTC