From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: REPL history Date: Mon, 06 Mar 2017 21:48:51 +0100 Message-ID: <87d1du9ln0.fsf@pobox.com> References: <20170305170631.GA4916@localhost.localdomain> <20170305175713.GA19769@tuxteam.de> <20170306191502.GA27659@localhost.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488833376 12178 195.159.176.226 (6 Mar 2017 20:49:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2017 20:49:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Mar 06 21:49:32 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckzZU-0002kY-6f for guile-user@m.gmane.org; Mon, 06 Mar 2017 21:49:32 +0100 Original-Received: from localhost ([::1]:46055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckzZa-0006O8-An for guile-user@m.gmane.org; Mon, 06 Mar 2017 15:49:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckzZ3-0006NE-9S for guile-user@gnu.org; Mon, 06 Mar 2017 15:49:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckzYz-0002DX-8r for guile-user@gnu.org; Mon, 06 Mar 2017 15:49:05 -0500 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:60049 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ckzYz-0002DO-15 for guile-user@gnu.org; Mon, 06 Mar 2017 15:49:01 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 33C1873126 for ; Mon, 6 Mar 2017 15:49:00 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=fSeTh5zf5eFT2gRXtFxzurICjSk=; b=BRprbP OpFN8PB6C4qRWJTReuRkTx+xnU8wsUXecrL30BzlLN5YNXjSRXo+tEMp+plCgkHa q3TeUHx5l3qPgeJrxQwsOxyii+tJzKBmSyaCz8LEN7kR6yHZoT1Q+3TQoqs1p4oR h/dv15/bq24oUYo9Dc9KvqakNFaed9PmS8MkI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=NYsXFwkm7rUQm+7+emiKJhb8e2wCz70d HzlS3ud9IHumru2AcEfB5k+trxGm+anq1HDATP/oDAfESPty9+ViJhv2iWDrjCpT lXkQK1ynbs6rTSKnkDwgps/zmQzHRDmQ9CqkhB0JYPubE0ZsREDgP2UJmQzOCK4J hNMuL9EBXus= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 2AEA773125 for ; Mon, 6 Mar 2017 15:49:00 -0500 (EST) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 1345373124 for ; Mon, 6 Mar 2017 15:48:58 -0500 (EST) In-Reply-To: <20170306191502.GA27659@localhost.localdomain> (Vladimir Zhbanov's message of "Mon, 6 Mar 2017 22:15:02 +0300") X-Pobox-Relay-ID: 52D1367A-02AE-11E7-AD0A-B667064AB293-02397024!pb-sasl1.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.66 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13430 Archived-At: On Mon 06 Mar 2017 20:15, Vladimir Zhbanov 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. Andy