From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5818 invoked from network); 16 Jul 2008 23:44:48 -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; 16 Jul 2008 23:44:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 71500 invoked from network); 16 Jul 2008 23:44:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Jul 2008 23:44:42 -0000 Received: (qmail 5649 invoked by alias); 16 Jul 2008 23:44:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25287 Received: (qmail 5634 invoked from network); 16 Jul 2008 23:44:39 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 16 Jul 2008 23:44:39 -0000 Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.249]) by bifrost.dotsrc.org (Postfix) with ESMTP id 37F9A80525AB for ; Thu, 17 Jul 2008 01:44:35 +0200 (CEST) Received: by hs-out-0708.google.com with SMTP id 23so1620269hsn.13 for ; Wed, 16 Jul 2008 16:44:34 -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:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Uod9Ox5xMZImLjBAfuHsyjdPUQ9RPjMWWTATJZyBGLQ=; b=j+DgfcFusIQXxl31C020nRM7xjAYEutGhFIfioH+OJ5vPlX44rUEcX0DhFMW3GyHe1 LszAHuCWj99NhBRvxFPWaeYM+9TYq8DPWdDv31uV5/cFYXOsbDrq0kfQvSOpEqMPdG5S v7cLM8Z4MXHLcnVYf2oVDcAeOxFZwJKCPWPHw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=G3WnCdg+pKc8plZV+gR3pTDxbljBewzNpxL4wsXGdz9LOUjyaMPxMAwDOHQXe6WfQd XeUFL9WizrSI7icjGGsAK6n4HxsdLtmZMGMPRNswekVfyzQjZbrVNPEyBvGQ/PB2OloI eMoUwwke2nzhfL9NNp7XBYtVpY3yT2PmWpvLs= Received: by 10.100.128.20 with SMTP id a20mr3072254and.153.1216251873611; Wed, 16 Jul 2008 16:44:33 -0700 (PDT) Received: by 10.100.43.19 with HTTP; Wed, 16 Jul 2008 16:44:33 -0700 (PDT) Message-ID: <2d460de70807161644u483c2c33l53734590710102d6@mail.gmail.com> Date: Thu, 17 Jul 2008 01:44:33 +0200 From: "Richard Hartmann" To: "Bart Schaefer" Subject: Re: Feature suggestion for autoload Cc: "Zsh hackers list" In-Reply-To: <080715183948.ZM10577@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2d460de70807151010m344b9a7dmeaca569f538b51c8@mail.gmail.com> <080715183948.ZM10577@torch.brasslantern.com> X-Virus-Scanned: ClamAV 0.92.1/7730/Wed Jul 16 20:15:38 2008 on bifrost X-Virus-Status: Clean On Wed, Jul 16, 2008 at 03:39, Bart Schaefer wrote: > fpath+=(thedirectory) > autoload thedirectory/*(:t) Peter's snippet is autoload -- ~/.zfunc/[^_]*(:t) It was the part with not loading files that have a leading underscore that eluded me. > fpath+=(thedirectory) > cd thedirectory > autoload * > cd - True, but that's not as elegant as the above. As it was not time critical, I prefered not to 'hack' something up. > "autoload" is just an alias for "typeset -fu" ... I'm excited neither > about making it a separate implementation nor about teaching typedef > how to read directories. Good reason, agreed. > "Finds" where? What I meant was 'autoload every file you find in fpath'. That suggestion is moot now, though. > Yes, you can certainly do that. There's no practical limit on the > number of function names you can pass to a single autoload command. Brain fart, of course you can. Sorry. Thanks, Richard