From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10380 invoked from network); 15 Jul 2008 17:10:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Jul 2008 17:10:37 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 75943 invoked from network); 15 Jul 2008 17:10:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Jul 2008 17:10:32 -0000 Received: (qmail 28406 invoked by alias); 15 Jul 2008 17:10:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25283 Received: (qmail 28393 invoked from network); 15 Jul 2008 17:10:28 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 15 Jul 2008 17:10:28 -0000 Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.242]) by bifrost.dotsrc.org (Postfix) with ESMTP id B21DA80525AB for ; Tue, 15 Jul 2008 19:10:21 +0200 (CEST) Received: by hs-out-0708.google.com with SMTP id 23so1308660hsn.13 for ; Tue, 15 Jul 2008 10:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=nqSPssuhMQKgHcxcFgq/mHb+MoXRWeTyV6vp3Ce4MAY=; b=vuyp6P0QIz7h3Yuf0CyN3CXJhINyakRN8G0BjkjfLNtpELBSyohuevb1XckdWzXjxs 6XsURsw5UnZCn1Iq2vR9miKZeTqhEzUH3yAwGpFyiiEqzmQa1/tNkx64BzeoiW4H8/PS b/XchOEQxScKl/b6MJZlauSfUH6db/LBOqd38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=POFnGk8UDvgGRg/kvKJ69AxH0slI3nrqTqeXIxFc0x4CjdiI+e62NFWJaN+GpVQMn0 8+Eqn8QGvqAT4YVigFgauuLuglsjhaR1ezC3sTMkhIUa6gjfO9NzV3N+HQZclPek5c02 zIQziFHtxuoN83bdiwdWIt03Ln6v0D5MND+f4= Received: by 10.100.126.19 with SMTP id y19mr11772278anc.106.1216141819892; Tue, 15 Jul 2008 10:10:19 -0700 (PDT) Received: by 10.100.43.19 with HTTP; Tue, 15 Jul 2008 10:10:19 -0700 (PDT) Message-ID: <2d460de70807151010m344b9a7dmeaca569f538b51c8@mail.gmail.com> Date: Tue, 15 Jul 2008 19:10:19 +0200 From: "Richard Hartmann" To: "Zsh hackers list" Subject: Feature suggestion for autoload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: ClamAV 0.92.1/7718/Tue Jul 15 17:32:36 2008 on bifrost X-Virus-Status: Clean I just wanted to put some functions in an extra folder & autoload them, but I don't have my ZSH book here so I could not look up the snippet to autoload all functions in a directory. This has got me thinking about an extra option for autoload which allows you to autoload all functions in a directory. Additionally, an option to autoload everything it finds could be useful for some though I doubt I would use it. Another option would be to define an array and load everything in said array. This could make a long list os autoloads more readable. I am not sure how useful this would be for others, so feedback would be appreciated. Richard PS: Yes, I am aware this could all be done in a function. A function which could the be autoloaded for some nice recursion :)