Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_complete_help troubles
- X-seq: zsh-workers 10679
- From: Adam Spiers <adam@xxxxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: _complete_help troubles
- Date: Tue, 11 Apr 2000 23:57:52 +0100
- In-reply-to: <000411145025.ZM8942@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Tue, Apr 11, 2000 at 02:50:25PM -0700
- Mail-followup-to: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000411212619.A1605@xxxxxxxxxxxxxxxxxxxxxxx> <000411145025.ZM8942@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Bart Schaefer (schaefer@xxxxxxxxxxxxxxxxxxxxxxx) wrote:
> Are you sure you're getting the most recent _perl_modules? _wanted is
> called at the end and now takes a command to execute as an argument, so
> it looks to me as though you've got an updated _wanted but an older
> _perl_modules.
*sigh* Thanks, you're quite right. My CVS working copy was perfectly
up to date, but I'd forgotten to remove some old _perl_modules from
elsewhere in my $fpath from when I was hacking on them.
> > Also, _complete_help hasn't worked for me for a while now, e.g.
> >
> > $ ls <TAB>
> > _complete_help:39: bad pattern: \n all-files (_files _default)
>
> I've no idea what would be happening there, but if _perl_modules is out
> of date then so may other things be ...
I'm pretty damn sure that everything's up to date now. No .zwc files
around, no old functions elsewhere in $fpath ...
The relevant bit of trouble-making code is:
for i in "${(@ok)help_funcs}"; do
text="${text}
tags in context :completion:${i}:"
tmp=()
for j in "${(@s.:.)help_funcs[$i][2,-1]}"; do
tmp=( "$tmp[@]" "${(@s.,.)help_tags[${i}${j}][2,-1]}" )
done
zformat -a tmp ' (' "$tmp[@]"
tmp=( '
'${^tmp}')' ) <<<<<< this line gives the error
text="${text}${tmp}"
done
tmp has the value `all-files (_files _default' when the error occurs,
which doesn't look right. Beyond that I'm lost, as I don't know what
_complete_help's output is supposed to be. Sven? Anybody? Bueller?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author