On 12 April 2013 14:29, Nala Ginrut <nalagin...@gmail.com> wrote:
> On Fri, 2013-04-12 at 07:55 +0800, Daniel Hartwig wrote:
>> On 11 April 2013 13:37, Ian Price <ianpric...@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

Reply via email to