Ludovic Courtès (2015-06-15 23:16 +0300) wrote:
> Alex Kost skribis:
>
>> So (analogously to 'pcomplete/sudo') the following function may be used
>> to complete "pre-inst-env" properly:
>>
>> (defun pcomplete/pre-inst-env ()
>> (pcmpl-args-pcomplete
>>(pcmpl-args-make-argspecs
>> `((arg
Alex Kost skribis:
> So (analogously to 'pcomplete/sudo') the following function may be used
> to complete "pre-inst-env" properly:
>
> (defun pcomplete/pre-inst-env ()
> (pcmpl-args-pcomplete
>(pcmpl-args-make-argspecs
> `((argument 0 (("COMMAND" nil))
> :subparser pcmp
Ludovic Courtès (2015-06-15 01:07 +0300) wrote:
> Alex Kost skribis:
>
>> Ludovic Courtès (2015-06-10 22:44 +0300) wrote:
>>
>> [...]
>>> Actually ‘sudo’ completion works well by default; e.g., “sudo ha”
>>> completes to “sudo halt”. Could it be that there’s another way to
>>> achieve that?
>>
>
Alex Kost skribis:
> Ludovic Courtès (2015-06-10 22:44 +0300) wrote:
>
> [...]
>> Actually ‘sudo’ completion works well by default; e.g., “sudo ha”
>> 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 "e
Ludovic Courtès (2015-06-10 22:44 +0300) wrote:
[...]
> Actually ‘sudo’ completion works well by default; e.g., “sudo ha”
> 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
Alex Kost skribis:
> Ludovic Courtès (2015-06-08 22:19 +0300) wrote:
>
>> PS: I wonder if something could also be done for “./pre-inst-env guix”...
>
> IIUC there is no simple way to configure pcomplete for that. Here is
> an invasive hack I came up with:
Nice, thanks!
> (defvar al/pcomplete-s
Ludovic Courtès (2015-06-08 22:19 +0300) wrote:
> PS: I wonder if something could also be done for “./pre-inst-env guix”...
IIUC there is no simple way to configure pcomplete for that. Here is
an invasive hack I came up with:
--8<---cut here---start->8---
(de