From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8521 invoked from network); 14 Mar 2000 17:55:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Mar 2000 17:55:59 -0000 Received: (qmail 9609 invoked by alias); 14 Mar 2000 17:55:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10139 Received: (qmail 9595 invoked from network); 14 Mar 2000 17:55:51 -0000 From: "Bart Schaefer" Message-Id: <1000314175541.ZM8931@candle.brasslantern.com> Date: Tue, 14 Mar 2000 17:55:41 +0000 In-Reply-To: <200003141019.LAA07320@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Default fpath" (Mar 14, 11:19am) References: <200003141019.LAA07320@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: Default fpath MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 14, 11:19am, Sven Wischnowsky wrote: } Subject: Re: Default fpath } } Bart Schaefer wrote: } > Actually, what would suit me fine is a way to dump out a } > .zwc of (a subset of the) functions defined in a running zsh. } } That's easy. Would you prefer it as an option to `zcompile' or one for } `functions'? I think it should go in zcompile, just because of potential confusion between "functions" and "typeset -f". It's not *that* big a deal, I guess, but somehow having anything that's described as "equivalent to typeset" write to a file, bothers me. [Tagging .zwc for zsh/ksh loading:] } } zcompile -z comp.zwc .../Completion/*/_* } } to have them all loaded zsh-like. } } zcompile foo.zwc -z bar -k baz } } would load bar zsh-like and baz ksh-like. } } Ok? Seems fine to me. Hmm, maybe autoload should have the `k' and `z' opts, too, but they only work with +X (the load-it now option). That would fix something that's been bugging me for a while. } But maybe this is a case where adding functions to a wordcode file } would be handy: } } zcompile foo.zwc -z bar1 baz1 } zcompile -a foo.zwc -k bar2 baz2 } } would create a wordcode file with bar1/baz1 loaded zsh-like and then } add bar2/baz2 loaded ksh-like to it. That would be reasonable, too, but with the "autoload" patches as well, I think the `zcompile -a ...' line would be equivalent to zsh -fc 'fpath=(...);\ autoload +Xw foo;\ autoload +Xk bar2 baz2;\ zcompile -c foo' which could be provided as a utility function rather than a builtin. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com