From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16100 invoked by alias); 25 May 2010 11:44:56 -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: 15080 Received: (qmail 28184 invoked from network); 25 May 2010 11:44:53 -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=-1.6 required=5.0 tests=BAYES_00,MISSING_HEADERS, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=no version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Tue, 25 May 2010 12:03:35 +0100 From: Peter Stephenson Cc: zsh-users@zsh.org Subject: Re: Problem with autocompletion Message-ID: <20100525120335.4bd3aa1a@csr.com> In-Reply-To: <9A3DC65E-EA72-4B51-93D6-6FEE454ACAF5@gmail.com> References: <9A3DC65E-EA72-4B51-93D6-6FEE454ACAF5@gmail.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; i686-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 May 2010 11:03:35.0642 (UTC) FILETIME=[EBE2D3A0:01CAFBF9] X-Scanned-By: MailControl A_09_40_00 (www.mailcontrol.com) on 10.68.0.124 On Tue, 25 May 2010 12:43:32 +0200 Andrea Morandini wrote: > cap staging deploy:upload FILES=my_app_dir/the_file_i_would_to_autocomp > _cap:compadd:7: can only be called from completion function "_cap" isn't a standard completion function supplied with the shell, so it looks to me like something funny is going on in there. Find out what that's doing and how it's been configured---does it have "#compdef cap" at the start and does "print $_comps[cap]" output "_cap"? The file _cap will be somewhere in the list of directories you see with "print -l $fpath" ("print ${^fpath}/_cap(N)" should tell you where it is). I presume you have run "compinit" in .zshrc to load the completion system? _cap is clearly assuming it's present (but for some reason finding it isn't). -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom