From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add ',run' and ',!' Date: Fri, 12 Apr 2013 17:37:11 +0800 Organization: HFG Message-ID: <1365759431.13058.21.camel@Renee-desktop.suse> References: <87fvyx4sqn.fsf@karetnikov.org> <87a9p5eigt.fsf@Kagami.home> <1365748182.13058.20.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1365759442 11381 80.91.229.3 (12 Apr 2013 09:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 09:37:22 +0000 (UTC) Cc: guile-devel@gnu.org To: Daniel Hartwig Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 12 11:37:24 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQaQ7-0004kI-8P for guile-devel@m.gmane.org; Fri, 12 Apr 2013 11:37:23 +0200 Original-Received: from localhost ([::1]:58658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQaQ6-00010k-Pg for guile-devel@m.gmane.org; Fri, 12 Apr 2013 05:37:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQaQ3-00010d-3B for guile-devel@gnu.org; Fri, 12 Apr 2013 05:37:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQaQ0-0000ja-Dp for guile-devel@gnu.org; Fri, 12 Apr 2013 05:37:19 -0400 Original-Received: from mail-da0-x229.google.com ([2607:f8b0:400e:c00::229]:49632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQaQ0-0000jO-7P for guile-devel@gnu.org; Fri, 12 Apr 2013 05:37:16 -0400 Original-Received: by mail-da0-f41.google.com with SMTP id w4so1078733dam.14 for ; Fri, 12 Apr 2013 02:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:in-reply-to :references:organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=3YA9EJLUkW/h24ZlUikLWVEgo5W3BEydzWKgxB/0Z9c=; b=YjCEtzf5ccGPG1lOcTh2DPvqadheaGzvEVu5wrZDLOB2DkJHUNX6/7SWFV1IfHnJdD JJDUmgERhRR5y/kowGvLY9v4wswOzHQJFwe0ARHf52oz/2xh1mHncVJoSmd1L8syGJha J80RVV2jaUHS/HZ3i7NMWkX684HxaFM96ZdHVbXTNC0d4fT1ffnsGyG+kXAZC7IV1bt/ oP91pJdBHRQgMmumGtSSRmwNM9Ua7WMpGj7NsjRWkX6qYnjToayGS5FtzaeCZZsoz+O5 Flc2HgAoT9EoUT7Eb0jsEVUh64Ggs8y5ZvGoP/jYDdRJ7GW0z4pvkauQnAkiEmTq3u+H JKzQ== X-Received: by 10.68.134.103 with SMTP id pj7mr13524840pbb.95.1365759434807; Fri, 12 Apr 2013 02:37:14 -0700 (PDT) Original-Received: from [147.2.147.112] ([61.14.130.226]) by mx.google.com with ESMTPS id gi10sm7850145pbc.40.2013.04.12.02.37.12 (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 02:37:14 -0700 (PDT) In-Reply-To: X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c00::229 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16226 Archived-At: On Fri, 2013-04-12 at 15:50 +0800, Daniel Hartwig wrote: > On 12 April 2013 14:29, Nala Ginrut wrote: > > On Fri, 2013-04-12 at 07:55 +0800, Daniel Hartwig wrote: > >> On 11 April 2013 13:37, Ian Price wrote: > >> > > >> >> So, what do you think? > >> > > >> > This is the sort of thing that belongs in a .guile rather than in > >> > guile IMO. > >> > > >> > >> Right, and since you can already do this with more control via the > >> posix interface, adding this 'shortcut' to the repl adds little in the > >> way of value. > >> > > > > I think it's worthy making our REPL-command module more extensible, and > > we may add customized REPL command. > > That is what ‘define-meta-command’ is for, though be sure to specify a > category (here ‘wigs’): > > scheme@(guile-user)> (use-modules (system repl command)) > scheme@(guile-user)> (define-meta-command ((foo wigs) repl . args) > "does a lot" > (display "foo") > (newline)) > scheme@(guile-user)> ,foo > foo > Ah~very nice~ So many cool things should be documented...