* problems with #compdef
@ 2001-08-15 15:15 Adam Spiers
2001-08-15 16:19 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Adam Spiers @ 2001-08-15 15:15 UTC (permalink / raw)
To: zsh users mailing list
I'm having problems getting zsh to use a custom-written completion
function. The function is called _pd, definitely lives somewhere in
my $fpath, definitely gets autoloaded during startup, and has
#compdef pd
as its first line. Yet $_comps[pd] is undefined, and pressing TAB
after `pd ' results in standard file completion. What have I missed?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problems with #compdef
2001-08-15 15:15 problems with #compdef Adam Spiers
@ 2001-08-15 16:19 ` Bart Schaefer
2001-08-16 12:51 ` Adam Spiers
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2001-08-15 16:19 UTC (permalink / raw)
To: Adam Spiers, zsh-users
On Aug 15, 4:15pm, Adam Spiers wrote:
}
} Yet $_comps[pd] is undefined, and pressing TAB after `pd ' results in
} standard file completion. What have I missed?
Are you possibly using "compinit -C"? Did you remove your .zcompdump file
so it can be rebuilt?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problems with #compdef
2001-08-15 16:19 ` Bart Schaefer
@ 2001-08-16 12:51 ` Adam Spiers
0 siblings, 0 replies; 3+ messages in thread
From: Adam Spiers @ 2001-08-16 12:51 UTC (permalink / raw)
To: zsh-users
Bart Schaefer (schaefer@brasslantern.com) wrote:
> On Aug 15, 4:15pm, Adam Spiers wrote:
> }
> } Yet $_comps[pd] is undefined, and pressing TAB after `pd ' results in
> } standard file completion. What have I missed?
>
> Are you possibly using "compinit -C"?
Yes, I am. Well spotted :-)
> Did you remove your .zcompdump file so it can be rebuilt?
Well I ran compdump, which I thought was equivalent, but evidently
not, because removing it does indeed work. Thanks a lot. So why
isn't compdump sufficient?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-16 12:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-15 15:15 problems with #compdef Adam Spiers
2001-08-15 16:19 ` Bart Schaefer
2001-08-16 12:51 ` Adam Spiers
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).