From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4241 invoked from network); 29 Feb 2000 08:21:52 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Feb 2000 08:21:52 -0000 Received: (qmail 12862 invoked by alias); 29 Feb 2000 08:21:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9924 Received: (qmail 12843 invoked from network); 29 Feb 2000 08:21:40 -0000 From: "Bart Schaefer" Message-Id: <1000229082135.ZM17801@candle.brasslantern.com> Date: Tue, 29 Feb 2000 08:21:35 +0000 In-Reply-To: <200002290745.IAA08900@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Precompiled wordcode zsh functions" (Feb 29, 8:45am) References: <200002290745.IAA08900@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: Precompiled wordcode zsh functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 29, 8:45am, Sven Wischnowsky wrote: } Subject: Re: Precompiled wordcode zsh functions } } [...] In my implementation digest files are really only one-file- } directories. I.e. they are searched like normal directories by } getfpfunc() (more precisely a utility function used by it). It will } not define all functions in the digest file immediately. I really } prefer that behaviour because a user has to worry about nothing when, } for example, he wants to override one of the functions with his own } definition in a directory earlier in $fpath. I'm concerned that we should at least have a way to produce a warning about it. I mean, if I were to invent a function named `_files' that had nothing to do with completion, and put it in a directory early in my $fpath -- even PWS's guide recommends putting your own functions before distributed ones -- three-quarters of the completion system would be mysteriously broken for me. If the whole completion system has been hidden inside one giant file, how do I find out what has gone wrong? And lest you think this is farfetched, please note that I've had the following in my .zshenv for many years now[*]: alias calc="noglob _calc" _calc() { awk "BEGIN {print $*}" < /dev/null } So existing user functions with leading underscores are not out of the question. Oh, and what's the handling with respect to kshautoload vs. a function like _cvs that wants to define other functions and then call itself? [*] Predating floating point support in zsh ... I never learned "bc". -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com