[slime-devel] inspect-in-emacs :wait t

Nikodemus Siivola nikodemus at random-state.net
Tue Jun 23 10:13:16 UTC 2009


The attached patch adds a :WAIT keyword argument to INSPECT-IN-EMACS.
If it is true, INSPECT-IN-EMACS waits for the inspector to be closed
in Emacs.

The motivation is to make

 (setf sb-impl::*inspect-fun*
      (lambda (object input output)
        (declare (ignore input output))
        (swank:inspect-in-emacs object :wait t)))

work as a better replacement for the built-in INSPECT, allowing you to
eg. insert INSPECT calls into code and having execution block on those
calls.

I'm personally happy enough with this, but am not sure if the way I
hook into kill-buffer with a closure should be considered abuse or not
-- ie. if this is in reasonably good style or a horrible hack.

Cheers,

 -- Nikodemus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inspect-in-emacs-wait.patch
Type: application/octet-stream
Size: 2898 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20090623/cd0278a2/attachment.obj>


More information about the slime-devel mailing list