Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Tests of interrupting completion, and completion_nostat_dirs

On Wed, 05 Feb 2014 08:56:31 -0500
Greg Klanderman <gak@xxxxxxxxxxxxxx> wrote:
> I'll wait to hear from Peter before doing anything..

Looks like the right answer is to add the parameter within
complete.c.  As it's an array, it's going to have to go separately
into the comprparams list (since we can't have arrays inside hashes at
the moment), but that means you can manipulate it from the
shell just as before (and the semantics for dealing with it internally
are exactly what you've got, except it's only visible in the completion
functions because you've added it to a different parameter structure).

Then _main_complete (or anything further down that knows when the
value is needed, but _main_complete is fine) can retrieve an
appropriately named style directly into the array, which is a single
line change.  So I think this is all straightforward.

This then looks like other completion configuration --- only the styles
are visible outside the completion system itself.


Messages sorted by: Reverse Date, Date, Thread, Author