Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh Completion function generation via XML
- X-seq: zsh-workers 16424
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Zsh Completion function generation via XML
- Date: Thu, 10 Jan 2002 11:44:47 +0100
- In-reply-to: <20020103065028.92120.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020103065028.92120.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Felix Rosencrantz wrote:
> ... [XML stuff]
That looks friendlier than before. Only two remarks:
> _arguments \
> ...
> '*:Handling Tag _files:->_files'
There should at least be a `&& return 0' after the last spec.
But, and that's the second remark, I strongly suggest that you don't
use states for every action, or states at all. They actually are the
worst case for _arguments, because it has to give up control. It's
also the most complicated and probably far from bug-free. Ahem.
Maybe use small sub-functions if you can't be bothered to find out if
the action can be put into the specs themselves.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author