Requesting input on some possible low-level changes
Subject: Requesting input on some possible low-level changes
From: James Amundson
Date: Wed, 03 Sep 2003 21:20:48 -0500
On Wed, 2003-09-03 at 21:24, Wolfgang Jenkner wrote:
> James Amundson <amundson@users.sourceforge.net> writes:
>
> > 5) to_lisp() or ctrl-c send the user to the underlying Lisp's
> > read-eval-print loop.
> >
> > 6) Lisp errors send the user to the underlying Lisp's debugger.
> >
> > While items (1)-(4) can easily be modified to send the appropriate
> > additional prompts, items (5) and (6) present a real problem.
>
> Why don't you find it enough to do (in RUN) something like
>
> (with-simple-restart
> (macsyma-quit "Macsyma top-level")
> (handler-case
> (macsyma-top-level input-string batch-flag)
> (condition () (invoke-restart 'macsyma-quit))))
I guess the best answer is that I thought of using *debugger-hook*
first. with-simple-restart sounds like a reasonable solution, also. I
would like to add the ability to select the native lisp debugger, but we
could do that either way.
I don't see any particular advantage to either solution. Does anyone
else?
--Jim