Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Make _xset complete more helpfully
- X-seq: zsh-workers 29246
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Make _xset complete more helpfully
- Date: Thu, 12 May 2011 10:14:20 -0700
- In-reply-to: <BANLkTi=9r5811hh+qnVU29x0goODq0G9DA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTi=9r5811hh+qnVU29x0goODq0G9DA@mail.gmail.com>
On May 12, 6:59pm, Mikael Magnusson wrote:
} Subject: PATCH: Make _xset complete more helpfully
}
} Looking into it now, this seems to be the fix, but I'm not sure I
} understand why. Is it simply wrong to give words not starting with a -
} or + to _describe when you pass -o?
As usual, the way to find out is to try it both ways and compare the
output of _complete_debug.
In this case _describe -o bails out at line 29:
27 [[ "$_type$_noprefix" = options && ! -prefix [-+]* ]] && \
28 zstyle -T ":completion:${curcontext}:options" prefix-needed &&
29 return 1
I'm not sure it's correct for it to entirely punt when prefix-needed
is not defined. Probably the right thing would be to assume a default
value instead ... but I don't really know.
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author