reconnecting and *GLOBALLY-REDIRECT-IO*

Gábor Melis mega at retes.hu
Tue Nov 24 21:34:14 UTC 2015


mega at retes.hu (Gábor Melis) writes:

> Luís Oliveira <luismbo at gmail.com> writes:
>
>> On Mon, Nov 23, 2015 at 4:18 PM, Gábor Melis <mega at retes.hu> wrote:
>>> Then switch to *slime-scratch* and evaluate with C-x C-e the loop
>>> form. The output goes to the repl regardless of
>>> *globally-redirect-io*. Now disconnect, reconnect and there is no more
>>> output although the thread is still there.
>>
>> Right, so what happens in that scenario is that a thread is spawned
>> via SWANK::SPAWN-WORKER-THREAD to handle the C-x C-e request and
>> eventually calls SWANK::WITH-IO-REDIRECTION which will bind the
>> various stream variables to the specific REPL stream created for the
>> current connection.
>>
>> I've attached a tentative fix for your use case.
>
> Thank you, I'll test it tomorrow.

Seems to work fine.



More information about the slime-devel mailing list