From: Peter Stephenson <Peter.Stephenson@csr.com>
Cc: zsh-users@zsh.org
Subject: Re: Problem with autocompletion
Date: Tue, 25 May 2010 12:03:35 +0100 [thread overview]
Message-ID: <20100525120335.4bd3aa1a@csr.com> (raw)
In-Reply-To: <9A3DC65E-EA72-4B51-93D6-6FEE454ACAF5@gmail.com>
On Tue, 25 May 2010 12:43:32 +0200
Andrea Morandini <andreamorandini@gmail.com> 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 <pws@csr.com> 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
next prev parent reply other threads:[~2010-05-25 11:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 10:43 Andrea Morandini
2010-05-25 11:03 ` Peter Stephenson [this message]
2010-05-25 14:12 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100525120335.4bd3aa1a@csr.com \
--to=peter.stephenson@csr.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).