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

2015-06-16 Thread Alex Kost
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

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

2015-06-15 Thread Ludovic Courtès
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

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

2015-06-15 Thread Alex Kost
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? >> >

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

2015-06-14 Thread Ludovic Courtès
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

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

2015-06-11 Thread Alex Kost
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

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

2015-06-10 Thread Ludovic Courtès
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