From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17301 invoked by alias); 15 Sep 2015 02:48:17 -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: 20562 Received: (qmail 12770 invoked from network); 15 Sep 2015 02:48:15 -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=dKZc9YmWhUTXa/SJmreTIw==:117 a=dKZc9YmWhUTXa/SJmreTIw==:17 a=N659UExz7-8A:10 a=z9TJQl-4m__USyODnY0A:9 a=pILNOxqGKmIA:10 Message-id: <55F786EC.2080007@eastlink.ca> Date: Mon, 14 Sep 2015 19:48:12 -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: <55F465E6.1040405@eastlink.ca> <2125131442086868@web14o.yandex.ru> <55F4930A.40608@eastlink.ca> <150912151040.ZM12254@torch.brasslantern.com> <55F4AF59.70606@eastlink.ca> <150912164339.ZM26555@torch.brasslantern.com> <55F62DA2.9090908@eastlink.ca> <150913193803.ZM25193@torch.brasslantern.com> <55F6403A.1000401@eastlink.ca> <150914132113.ZM26035@torch.brasslantern.com> In-reply-to: <150914132113.ZM26035@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 09/14/2015 01:21 PM, Bart Schaefer wrote: > No; it happens to involve path expansion in the specific example of > appending /* to every element of $fpath, but that's not really what > it means. The second paragraph of the doc is useful: > > ${^SPEC} > Turn on the RC_EXPAND_PARAM option for the evaluation of SPEC; if > the `^' is doubled, turn it off. When this option is set, array > expansions of the form FOO${XX}BAR, where the parameter XX is set > to (A B C), are substituted with `FOOABAR FOOBBAR FOOCBAR' instead > of the default `FOOA B CBAR'. Note that an empty array will > therefore cause all arguments to be removed. Ok ... useful for path expansion but not specific to it. It comes back to me that this RC_EXPAND_PARAM sounded great but had a gotcha attached to it. But if the caret turns it on for one particular expansion then that's very satisfactory. > } > (zcompile on the other hand DOES load from locations rather than from > } > a path search, so if you use zcompile + autoload -w you get the path > } > stripping.) > } > > One more thing if you would Bart: get me started with combining zcompile with autoload as you mentioned. It sounds like a good idea but I can't find anything on it. I know what zcompile is, but it makes so little difference in loading speed that I've not really bothered with it. But if it works synergistically with autoload that might be interesting to play with.