From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3168 invoked from network); 14 Mar 2000 10:41:05 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Mar 2000 10:41:05 -0000 Received: (qmail 11541 invoked by alias); 14 Mar 2000 10:40:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10132 Received: (qmail 11531 invoked from network); 14 Mar 2000 10:40:52 -0000 Date: Tue, 14 Mar 2000 11:40:51 +0100 (MET) Message-Id: <200003141040.LAA07354@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Andrej Borsenkow"'s message of Tue, 14 Mar 2000 13:30:16 +0300 Subject: Re: Wordcode files and compinit Andrej Borsenkow wrote: > I understand, for compinit to work I still need to have both source and compiled versions > of completion functions? Some vague idea (probably, a step toward a "real" packaging) - we > already keep quite a lot of information in wordcode files. What about adding a bit more - > general "package name" (package id or how it can be called) and per-package specific > information. > > This would allow you to select package functions you want to load, and compinit could > extract the same info as currently from comment. Something like > > autoload -P completion > > would add all completion functions but not zftp functions. That will still allow you to > install everything by default but select just what is needed. > > Of course, package name may be hierarchical ... completion/Debian :-) Just a quick thought... Hm. The wordcode files already store the complete pathnames used when calling zcompile. That could be changed to prepend $PWD to names not starting with a slash. Then we could change the patch for `autoload -w' to make `autoload -w foo.zwc a b c' mark only a, b and c for autoloading. And then we could make `autoload -mw foo.zwc "*/Completion/Debian/*"' mark only those functions for autoloading. I confess that I hadn't thought about combining wordcode files with a package concept, although this now looks like a rather obvious idea... Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de