Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion for perldoc
- X-seq: zsh-workers 7681
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: completion for perldoc
- Date: Tue, 7 Sep 1999 10:59:21 +0200 (MET DST)
- In-reply-to: Adam Spiers's message of Mon, 6 Sep 1999 19:21:31 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Adam Spiers wrote:
> Adam Spiers (adam@xxxxxxxxxxxxxxxxxxxxxxx) wrote:
> > _perldoc {
> > _arguments -s \
> > '-h:help:' \
> > '(-q)-f:Perl built-in function:_perl_builtin_funcs' \
> > '(-f)-q:Perl FAQ keyword:' \
> > '*:Perl pod pages:_perl_pods'
> > }
> >
> > _perl_pods {
> > local nm="$compstate[nmatches]"
> >
> > _perl_modules
> > _perl_basepods
> > _path_files -J "Perl modules and .pods" -/ -g '*.(pod|pm)'
> >
> > [[ nm -ne compstate[nmatches] ]]
> > }
>
> I forgot to say: this kills zsh :-(
>
> ...
>
> If you need any more debugging info, let me know. (Why are all the
> parameter lists empty?)
Yes I need more, namely the exact command line where you tried
completion. I've tested `perldoc' with completion after `-f', `-q',
and in a normal argument position and all this seems to work for me,
but I had to change `_perl_basepods' to use `whence -p basepod'
instead of `which ...' because I don't have `basepods'. I also had to
change `_perl_builtin_funcs' to use `command man ...' because I happen
to have a function called `man'.
About the argument lists: did you really compile the beast with
debugging? (`-ggdb' in your Makefile, or at least `-g'?)
Otherwise the backtrace seems very fishy, because `comp_setunset'
doesn't call `runshfunc'.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author