From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: gh_repl Date: Mon, 09 Jan 2012 19:37:37 +0100 Message-ID: <8762gk7mdq.fsf@pobox.com> References: <1316922872.25009.YahooMailNeo@web37901.mail.mud.yahoo.com> <87wr907pa1.fsf@pobox.com> <1326132716.20961.YahooMailNeo@web37903.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326134285 8034 80.91.229.12 (9 Jan 2012 18:38:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 18:38:05 +0000 (UTC) Cc: Guile User To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 09 19:37:58 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkK6X-00045K-V9 for guile-user@m.gmane.org; Mon, 09 Jan 2012 19:37:58 +0100 Original-Received: from localhost ([::1]:38909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkK6W-0005BI-Sw for guile-user@m.gmane.org; Mon, 09 Jan 2012 13:37:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkK6O-0005BA-Cv for guile-user@gnu.org; Mon, 09 Jan 2012 13:37:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkK6I-0003U7-OA for guile-user@gnu.org; Mon, 09 Jan 2012 13:37:48 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:58063 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkK6I-0003U3-Jg for guile-user@gnu.org; Mon, 09 Jan 2012 13:37:42 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 1ADED8AD8; Mon, 9 Jan 2012 13:37:42 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=ocAhi7/qW34h ulkNjTWU1TWa0c0=; b=kkzBorzKy4cGoBYEzpWIL9EiosufvC8T2n8ZAstJT/dj b3Jltlo1y5ojAoRBFaBUmQihnCy4z4ewDnHuuoejfwZjG+qEbXCAmGiKUHiRzPZ6 qyXXoe/qqRwzMHiwpWc2nDXIPXjyFvpWQFmo0LHilTEbF7zDePHYrwneNu74PjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=q/De6N AH5WPUObB461AN7FWP/ktTnBsSaOpzARnqjXFJiKqXcRYDjrjb9KbyOh8pvUTSqj 7BcdFwid6o8wnz7642cCiazo3jaUlHJsKXNQ1r6+cC58T8SQA801DZp/xELSn7JP V8YivbPw55pey9mR7W6+yb11uzHz46uesA0Vk= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 1324F8AD7; Mon, 9 Jan 2012 13:37:42 -0500 (EST) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 6FA0B8AD6; Mon, 9 Jan 2012 13:37:41 -0500 (EST) In-Reply-To: <1326132716.20961.YahooMailNeo@web37903.mail.mud.yahoo.com> (Mike Gran's message of "Mon, 9 Jan 2012 10:11:56 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 0360DB70-3AF1-11E1-AD39-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9106 Archived-At: On Mon 09 Jan 2012 19:11, Mike Gran writes: >> scm_call_1 (scm_public_ref ("ice-9 top-repl", "top-repl")) ? >>=20 >> Do we need a better answer here? :) > > For guile-2.0, I eventually settled on=20 > =C2=A0 > scm_call_1 (scm_c_public_ref ("system repl repl", "start-repl"), > =C2=A0=C2=A0 scm_from_locale_symbol ("scheme")); This won't catch SIGINT, and it won't add on the session, regex, and threads bindings to your guile-user. Is that what you wanted? See ice-9/top-repl.scm (which eventually does dispatch to that start-repl command). Andy --=20 http://wingolog.org/