[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REPL history

From: Andy Wingo
Subject: Re: REPL history
Date: Mon, 06 Mar 2017 21:48:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

On Mon 06 Mar 2017 20:15, Vladimir Zhbanov <address@hidden> writes:

> OK, put things other ways. I have a GUI app which starts REPL in
> another thread. Is there a way to call a thunk in that REPL from
> the GUI app? Basically, I want it to exit gracefully by calling
> (quit) in the REPL before GUI exits. 

What if, in your GUI app, you call stop-server-and-clients! from (system
repl server) ?  That aborts to a prompt to unwind the stack, so it's not
catchable but a dynamic-wind out guard will run.  Only really works in
2.2 tho I think.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]