From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3802 invoked from network); 4 May 2000 13:40:54 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 May 2000 13:40:54 -0000 Received: (qmail 5099 invoked by alias); 4 May 2000 13:40:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11152 Received: (qmail 5080 invoked from network); 4 May 2000 13:40:32 -0000 Date: Thu, 4 May 2000 15:40:17 +0200 (MET DST) Message-Id: <200005041340.PAA08620@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Tanaka Akira's message of 04 May 2000 21:02:06 +0900 Subject: Re: PATCH: Re: sudo completion problem Tanaka Akira wrote: > ... > > My idea is already implemented: _regex_arguments. Although currently > there are only three completion functions - _apt, _xwit and _xset - > which use _regex_arguments because it cannot use _arguments, I think > there are more completion functions which can be written bit more > simple if _regex_arguments is used. Maybe, _xauth (and _cvs?). Personally I find _arguments a whole lot more readable than _regex_arguments. If that could be improved, I'd be glad. Although I always wonder why people find _cvs difficult... > ... > > > And I'd like repeat once more - currently, when _arguments is using > > lexical structure to describe semantic, it is hard to add something. If > > we had flags ... (not suggesting breaking compatibility - but just for > > future use). > > _regex_arguments handle only parsing of arguments. So other stuff > handled by _arguments such as descriptions, exclusive options must be > implemented by completion function writer. It's bit hard task but we > can implement special feature easily. I would be *very* glad if _regex_arguments could at least handle the tags, tag-labels and descriptions. I had lots of problems trying to work those changes into the functions using _regex_arguments and since I don't know any of those commands I still don't know if I've got it right. Either in _regex_arguments or in a convenience wrapper function around it, of course. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de