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

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

* Nikodemus Siivola [2009-06-23 12:13+0200] writes:
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.
Looks OK to me. When emacsclient opens a file it probably does the same. Helmut.

2009/6/24 Helmut Eller <heller@common-lisp.net>:
* Nikodemus Siivola [2009-06-23 12:13+0200] writes:
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.
Looks OK to me. When emacsclient opens a file it probably does the same.
Committed, -- Nikodemus
participants (2)
-
Helmut Eller
-
Nikodemus Siivola