From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14955 invoked by alias); 27 Jul 2011 09:06:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29617 Received: (qmail 29334 invoked from network); 27 Jul 2011 09:06:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1c62QbPZrsAzbgwari0XXf1R4uOcHorNdawmKqZpKk0=; b=MfgLT5fp2hjivggMLvgV1YC9/jMvcKNbCN0eEgDIB9SuGG/W7+Nq3M2PhxaZytOyqc Y1Qsgqz907CeyBCYMZwGWzgCpWn1MmSuO1gRDOzLqT3PClgYUxKtfl2z5LtOwHwr4uVH OVjR3xHoIHBb9A+vZcmELM7yd5jF9g//jVEHU= MIME-Version: 1.0 In-Reply-To: <110727012046.ZM21543@torch.brasslantern.com> References: <110727012046.ZM21543@torch.brasslantern.com> Date: Wed, 27 Jul 2011 11:04:43 +0200 Message-ID: Subject: Re: completers using zstat don't work with zmodload -F zsh/stat From: Mikael Magnusson To: Bart Schaefer Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On 27 July 2011 10:20, Bart Schaefer wrote: > On Jul 26, 9:09pm, Mikael Magnusson wrote: > } > } I just got the idea to 'which' the function, and indeed all the zstat > } are magically replaced with 'builtin stat', which explains the > } trouble. Why does that happen though? > > It must be that you have an alias for zstat. This doesn't happen to > me. Make sure you're autoloading the completion functions with > "autoload -U" ? Although compinit should do that for you. > > Perhaps you zcompile'd the completion functions and did not use > "zcompile -U" ? I did have an alias, but only in root's .zshrc, didn't think to check for that. Adding -U to the zrecompile command didn't help, I had to remove the alias. for a ($fpath) {[ -w $a:r -a $a/_*(N[1]) ] && zrecompile -p -U -z $a.zwc $a/_*} is how I'm compiling my completion functions. -- Mikael Magnusson