[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:
pcomplete-pre-inst-env.el
Description: application/emacs-lisp
--
Alex
- [PATCH 2/2] emacs: Add shell completions for "guix" command., Alex Kost, 2015/06/06
- Re: [PATCH 2/2] emacs: Add shell completions for "guix" command., Ludovic Courtès, 2015/06/07
- Re: [PATCH 2/2] emacs: Add shell completions for "guix" command., Ludovic Courtès, 2015/06/07
- Re: [PATCH 2/2] emacs: Add shell completions for "guix" command., Alex Kost, 2015/06/08
- Re: [PATCH 2/2] emacs: Add shell completions for "guix" command., Ludovic Courtès, 2015/06/08
- Complete './pre-inst-env guix ...', Alex Kost, 2015/06/10
- Re: Complete './pre-inst-env guix ...', Ludovic Courtès, 2015/06/10
- Re: Complete './pre-inst-env guix ...', Alex Kost, 2015/06/11
- Re: Complete './pre-inst-env guix ...', Ludovic Courtès, 2015/06/14
- Re: Complete './pre-inst-env guix ...',
Alex Kost <=
- Re: Complete './pre-inst-env guix ...', Ludovic Courtès, 2015/06/15
- Re: Complete './pre-inst-env guix ...', Alex Kost, 2015/06/16