Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Wordcode files and compinit
- X-seq: zsh-workers 10228
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: RE: Wordcode files and compinit
- Date: Fri, 24 Mar 2000 13:05:36 +0100 (MET)
- In-reply-to: "Andrej Borsenkow"'s message of Fri, 24 Mar 2000 14:31:23 +0300
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> > 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.
>
> This won't help in case of completion.
It isn't possible any more anyway (because of `zcompile -c ...').
> We need the information from
> comments and comments are lost when compiling zsh code. With current way
> completion is initialized, functions must be present in source form. I
> am not happy about it.
I'm very happy with it. No way for anyone to give completion functions
(or any functions) without also giving the source code.
> Keeping two form of the same function always
> increases the possibility of two getting out of sync.
Have you had a look at the zrecompile function I sent? It should make
this simple. Also, the wordcode files could be organised in a way that
makes the source files be preferred when they are younger (just create
a wordcode file for each completion directory named like the directory
with a trailing `.zwc'). That would be less efficient than using one
big wordcode file, though (zrecompile can help with both approaches).
And anyway, the distributed functions will, from a user's or
administrator's point of view, be relatively stable.
Please also remember that in the part of my message which you didn't
quote I said that I hadn't thought about using wordcode files for a
package concept and that the above was just a quick thought...
I don't plan to think much more about the package stuff now, there are
other things higher on my lsit, so only another quick thought: we
could enhance the wordcode file format to allow user's to store extra
information for each function...
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author