From: Daniel Hartwig <mandyke@gmail.com>
To: guile-devel@gnu.org
Subject: Re: [PATCH] Add ',run' and ',!'
Date: Fri, 12 Apr 2013 15:50:22 +0800 [thread overview]
Message-ID: <CAN3veRdkr57B03V0Bw4vUGkSsFB9BK7d1YFTsGNV4+vSTT_W+w@mail.gmail.com> (raw)
In-Reply-To: <1365748182.13058.20.camel@Renee-desktop.suse>
On 12 April 2013 14:29, Nala Ginrut <nalaginrut@gmail.com> wrote:
> On Fri, 2013-04-12 at 07:55 +0800, Daniel Hartwig wrote:
>> On 11 April 2013 13:37, Ian Price <ianprice90@googlemail.com> 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
next prev parent reply other threads:[~2013-04-12 7:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-11 4:05 [PATCH] Add ',run' and ',!' Nikita Karetnikov
2013-04-11 5:37 ` Ian Price
2013-04-11 23:55 ` Daniel Hartwig
2013-04-12 6:29 ` Nala Ginrut
2013-04-12 7:50 ` Daniel Hartwig [this message]
2013-04-12 9:37 ` Nala Ginrut
2013-04-12 14:38 ` Ian Price
2013-04-12 23:45 ` Nikita Karetnikov
2014-03-23 19:38 ` Andy Wingo
2014-03-23 20:03 ` Doug Evans
2013-04-12 8:46 ` Ludovic Courtès
2013-04-12 23:52 ` Nikita Karetnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN3veRdkr57B03V0Bw4vUGkSsFB9BK7d1YFTsGNV4+vSTT_W+w@mail.gmail.com \
--to=mandyke@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).