guix-devel
[Top][All Lists]
Advanced

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

Re: Complete './pre-inst-env guix ...'


From: Alex Kost
Subject: Re: Complete './pre-inst-env guix ...'
Date: Mon, 15 Jun 2015 15:43:34 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ludovic Courtès (2015-06-15 01:07 +0300) wrote:

> Alex Kost <address@hidden> skribis:
>
>> Ludovic Courtès (2015-06-10 22:44 +0300) wrote:
>>
>> [...]
>>> Actually ‘sudo’ completion works well by default; e.g., “sudo ha<TAB>”
>>> completes to “sudo halt”.  Could it be that there’s another way to
>>> achieve that?
>>
>> ‘sudo’ completions don't work by default (did you check "emacs -Q"?)
>> I think you are using some additional package for that.
>
> Indeed, this must be provided by the ‘pcmpl-args’ package.

Thanks for the pointer, that's a great package!  Its completions don't
use a common 'pcomplete-here' function (and don't rely on
'pcomplete-args' and other global variables).  Instead the own
"pcmpl-args" code base (and it is big!) is used.

So (analogously to 'pcomplete/sudo') the following function may be used
to complete "pre-inst-env" properly:

Attachment: pcomplete-pre-inst-env.el
Description: application/emacs-lisp

-- 
Alex

reply via email to

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