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

Re: Moving completion functions

(Gotta find some more zsh-workers in my timezone.  Half the time I feel
like I'm talking to myself.  "... and the award for the most consecutive
messages to zsh-workers, none intercepted, goes to ...")

On Mar 25,  4:26pm, Oliver Kiddle wrote:
} Subject: Re: Moving completion functions
} Bart wrote:
} > I'd actually rather split compctl-examples up into smaller files and put
} > them all in Functions/Compctl, but I suppose we're trying to discourage
} > use of compctl ...
} That's not a bad idea. They'd be out of the way in the Compctl directory
} so I don't think it would be too much of an encouragement.

Unfortunately, thinking about it a bit more, most of compctl-examples is
not functions but compctl commands.  Unlike the new completion system,
there's no convenient way to autoload them, so putting them under the
Functions directory doesn't make as much sense.

Unless ...

I just had a wonderful, awful idea ... one could use `compctl -T' to call
a function, which runs an autoloaded function, which defines a compctl,
which is then called because the -T attempt didn't generate a match ...

Oh, dear.

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   

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