Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Completion/User/_cvs again.
- X-seq: zsh-workers 7688
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Completion/User/_cvs again.
- Date: Tue, 7 Sep 1999 13:22:08 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 07 Sep 1999 19:47:41 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Tanaka Akira wrote:
> I think the style of `_rpm' is useful for state machines. But it
> cannot represent function call. And `_cvs' has such functions.
>
> For example, `_cvs_extract_directory_entries' is called from
> `_cvs_setup_allentries', `_cvs_setup_direntries' and
> `_cvs_setup_modentries'. And it should return to its caller.
> This is hard to implement in state machine style, I think.
Ah, I see. Sorry.
Yes, adding a heap of extra states a la `extract_file_or_directory_entry'
is ugly.
Hm, some form of `case' that executes all matching branches would be
useful here.
(Yes, I know that one can do that e.g. with a `case' in a loop where
the case branches remove substrings from the `state' name, but that
isn't exactly a nice solution, either.)
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author