[slime-devel] Re: how to interrupt & kill function execution
Helmut Eller
e9626484 at stud3.tuwien.ac.at
Sun Dec 5 19:38:10 UTC 2004
Frode Vatvedt Fjeld <frodef at cs.uit.no> writes:
> Would it be possible, as a qick-and-dirty-hack, to poll some interrupt
> flag in the (swank?) IO stream glue such that clisp can be breaked at
> least if it emits some output? (Or perhaps even a once-a-second or so
> timer polling could be implemented?)
Hmm.. the patch below tests whether some input is available after
sending something to Emacs. If so the input is processed immediately.
So, typing `C-c : (break) RET' should give you a debugger the next
time something is sent to Emacs. You also need to add
(setq swank:*use-dedicated-output-stream* nil)
to your ~/.swank.lisp. (Otherwise output is send to an extra stream
for efficiency reasons.)
> Has anyone tried to talk to the clisp people about having a break
> signal for a proper solution under win32?
Not that I know of.
Helmut.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swank.patch
Type: text/x-patch
Size: 1239 bytes
Desc: process input immediately
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20041205/0b051c7e/attachment.bin>
More information about the slime-devel
mailing list