From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9031 invoked by alias); 18 Sep 2015 18:29:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20588 Received: (qmail 26008 invoked from network); 18 Sep 2015 18:29:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=Qosx6O6xXGET3N4RHWVm7w==:117 a=Qosx6O6xXGET3N4RHWVm7w==:17 a=N659UExz7-8A:10 a=xfls9HCzEiq9J1fyYF8A:9 a=pILNOxqGKmIA:10 Message-id: <55FC5806.3090506@eastlink.ca> Date: Fri, 18 Sep 2015 11:29:26 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: autoload References: <55FAE223.2080502@eastlink.ca> <150917103419.ZM10067@torch.brasslantern.com> <55FB12FD.8000504@eastlink.ca> <150917134047.ZM10250@torch.brasslantern.com> <55FB476F.7080106@eastlink.ca> <150917162009.ZM10431@torch.brasslantern.com> <55FB66E8.5030503@eastlink.ca> <150917210453.ZM12575@torch.brasslantern.com> <55FB9A50.4060903@eastlink.ca> <150917225221.ZM25880@torch.brasslantern.com> <55FC326F.4050503@eastlink.ca> <150918095248.ZM26836@torch.brasslantern.com> In-reply-to: <150918095248.ZM26836@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 09/18/2015 09:52 AM, Bart Schaefer wrote: > } I see. Nuts, there's nothing about that in the docs is there? > > There's an entire section for "Autoloading Functions" but it has no > cross-reference from the "autoload" builtin (autoload points to > functions points to typeset which finally does have the section > reference). I'll rearrange this a bit. What would be sweet is a self-contained HOWTO sort of doc that walks you through the entire subject with real world examples of solutions for real situations. IOW, instead of focusing on a command, it would focus on the goal: "Say you want your functions to load faster. Up till now you've been sourcing them at startup, which is fine, but you can do much better ...." ... 20 minutes latter you are cooking. > > } > } $ for aa in /aWorking/Zsh/Source/*; do source $aa; done > > You can do that: > > FPATH=/aWorking/Zsh/Source autoload +X -w /aWorking/Zsh/Source/Source.zwc > > The +X option is documented and means "load this now, but don't run it." > Ha! Just when I'd decided to give up.