From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23449 invoked by alias); 18 Sep 2015 16:52:57 -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: 20586 Received: (qmail 1603 invoked from network); 18 Sep 2015 16:52:55 -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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=1xXYkfmhYuLNW0x3x7I6lm3a9oXwW3/wyoIr6R1a2cg=; b=WcmZV7MAl25/XgKpztdfoSLiNdm2CaHDGoBloWywvrSWjBTS2lp4vqNfzjb5b2jnPv ZSJPTpAm0XmK15YWjZlVDawYWczWOWj0g4aJpm3yIlSp5MyQ1NzPn8n8Gn+dJOzNvaT/ E5Fl+2XW9A0REmrRe/lpeOmccRQ+LK3GCt2c28EKhsKyxC8qbVLiqRSCmqKDiNRw60E1 Pii0pY62L/D6W4jBA1oK2PSbITTsChBiVQ4cYv7426acjE1vBQwoGHCuPnlU4AUKIJbo AsrCfPiPcis/ex8pt/RAWGGw8XuOnSZWJwSEoU1NIJi5QASe/YeTPbUVPvrX3XCwy7zZ tnKQ== X-Gm-Message-State: ALoCoQmOHkt/o4G7j8DgThl5Ek4adnh1aQMplACUOxMmEh6k9YMO2vgFM92duMDVUdI8tHJlQQ58 X-Received: by 10.202.232.12 with SMTP id f12mr3720625oih.122.1442595171396; Fri, 18 Sep 2015 09:52:51 -0700 (PDT) From: Bart Schaefer Message-Id: <150918095248.ZM26836@torch.brasslantern.com> Date: Fri, 18 Sep 2015 09:52:48 -0700 In-Reply-To: <55FC326F.4050503@eastlink.ca> Comments: In reply to Ray Andrews "Re: autoload" (Sep 18, 8:49am) 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> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: autoload MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 18, 8:49am, Ray Andrews wrote: } } > If we now throw zcompile into the mix, the -z / -k options to autoload } > are ignored in favor of the -z / -k options to zcompile. However, the } > rule about the file name having to be the same as the function name } > doesn't change. Further "autoload -w" still doesn't define anything; } > it just uses the index table in the zcompiled file to grab the list } > of names to mark for later processing. } } This could be made clearer in the docs. [...] } 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. There IS a cross-reference to that section from the zcompile builtin. } $ autoload --just_DO_IT Source.zwc } } ... that is functionally identical to: } } $ 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."