guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] emacs: Add shell completions for "guix" command.


From: Ludovic Courtès
Subject: Re: [PATCH 2/2] emacs: Add shell completions for "guix" command.
Date: Sun, 07 Jun 2015 21:38:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

address@hidden (Ludovic Courtès) skribis:

> I wonder if ‘guix-pcomplete-run-guix’ couldn’t run the command in a REPL
> instead of spawning a process.  That is, when completing ‘guix build’,
> it would evaluate something like:
>
>   (with-output-to-string
>     (lambda ()
>       (catch 'quit
>         (lambda ()
>           ((@ (guix scripts build) guix-build) "--help"))
>         (const #t))))

Another possibility would be to inspect the ‘%options’ variable of the
command, but that wouldn’t give access to the help message.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]