From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add ',run' and ',!' Date: Fri, 12 Apr 2013 15:50:22 +0800 Message-ID: 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: quoted-printable X-Trace: ger.gmane.org 1365753027 10518 80.91.229.3 (12 Apr 2013 07:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 07:50:27 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 12 09:50:31 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 1UQYkf-0006u8-Pd for guile-devel@m.gmane.org; Fri, 12 Apr 2013 09:50:29 +0200 Original-Received: from localhost ([::1]:44017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQYkf-0003TL-DM for guile-devel@m.gmane.org; Fri, 12 Apr 2013 03:50:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQYkb-0003TC-JR for guile-devel@gnu.org; Fri, 12 Apr 2013 03:50:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQYkZ-00057G-Ra for guile-devel@gnu.org; Fri, 12 Apr 2013 03:50:25 -0400 Original-Received: from mail-ia0-x22c.google.com ([2607:f8b0:4001:c02::22c]:38349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQYkZ-000576-Lo for guile-devel@gnu.org; Fri, 12 Apr 2013 03:50:23 -0400 Original-Received: by mail-ia0-f172.google.com with SMTP id k38so2167755iah.3 for ; Fri, 12 Apr 2013 00:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=5N1bPA7KWTs/EeqeYOPYm78WVROBD6fJPndIzfhMMEA=; b=b8FbTnJ85aqi6mwFx1hDly+QagXMJGNzjBUC1Cv7vVFOJcC0VG9coBXApX2cPcfJOg ALmhs3NppoeQCJcn7D7Wzepz4g9tahQKvIMr41nhBp2v2aCDra09zVyMwnYxLK2/vnj3 TPzEASCpXJ4aP3Y26RRX49ErQQDUXQR2RwMcnaFJn8ZATwiLXxGu11HOUdu9BmX+Vxrg kqQeiYIWhm+CTaSWtCTti0Bb7/Qgxp6jBez8wSxWKFNchRhhKYDRD3m9CArbESfO2//F A9wL2WYrJ6gXGJ7qC+7iQmRGhoDY4FDbNsDARCdp0hiHNu7zXT8QxoPXBIAtPYmOzBWP jmqA== X-Received: by 10.50.195.134 with SMTP id ie6mr1135825igc.6.1365753022981; Fri, 12 Apr 2013 00:50:22 -0700 (PDT) Original-Received: by 10.64.26.168 with HTTP; Fri, 12 Apr 2013 00:50:22 -0700 (PDT) In-Reply-To: <1365748182.13058.20.camel@Renee-desktop.suse> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c02::22c 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:16224 Archived-At: 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 =E2=80=98define-meta-command=E2=80=99 is for, though be sure t= o specify a category (here =E2=80=98wigs=E2=80=99): 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