[slime-devel] Re: Output lost after disconnect reconnect

Gábor Melis mega at retes.hu
Tue Apr 8 10:21:44 UTC 2008


On Jueves 03 Abril 2008, Tobias C. Rittweiler wrote:
> Gábor Melis <mega at retes.hu> writes:
> > The attached patch aims to fix this by:
> > 	* swank.lisp (maybe-call-with-io-redirection): don't
> > 	CALL-WITH-REDIRECTED-IO if *GLOBALLY-REDIRECT-IO*. Fixes
> > 	lost output after disconnect, reconnect.
>
> The "problem" with this is that you'll then be able to globally set
> *STANDARD-OUTPUT* &c to other values in case of
> *GLOBALLY-REDIRECT-IO* from the REPL. You won't be able to do so when
> *GLOBALLY-REDIRECT-IO* is NIL, though.
>
> Thus for consistency, I'd suggest to modify CALL-WITH-REDIRECTED-IO
> to bind *STANDARD-OUTPUT* &c in any case (if *GLOBALLY-REDIRECT-IO*
> is T, they're just bound to themselves.)

Updated patch attached.

Tested with sbcl and allegro (with allegro it needs the other 
*globally-redirect-io* patch sent today).

Cheers, Gabor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: redirect.patch
Type: text/x-diff
Size: 2702 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20080408/05cfc16d/attachment.patch>


More information about the slime-devel mailing list