From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1706 invoked from network); 24 Aug 1999 15:57:29 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 Aug 1999 15:57:29 -0000 Received: (qmail 19345 invoked by alias); 24 Aug 1999 15:57:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7476 Received: (qmail 19337 invoked from network); 24 Aug 1999 15:57:05 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: completion References: <199908231346.PAA03326@beta.informatik.hu-berlin.de> MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 25 Aug 1999 00:56:54 +0900 In-Reply-To: Sven Wischnowsky's message of "Mon, 23 Aug 1999 15:46:54 +0200 (MET DST)" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article <199908231346.PAA03326@beta.informatik.hu-berlin.de>, Sven Wischnowsky writes: > '-opt:*::descr:action' # all args to the option Does this require the actual option? I tried to use this for first non-option argument. But it does not work. Z(2):akr@is27e1u11% ./Src/zsh -f is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst is27e1u11% compconf group_matches=yes is27e1u11% compconf message_format='%d' is27e1u11% compconf description_format='%d' is27e1u11% _tst () { _arguments '-x' ':*::mesg:_tst2' } is27e1u11% _tst2 () { compadd "$words" } is27e1u11% tst -x -> is27e1u11% tst -x tst\ -x\ So, _arguments doesn't cut off words in this case. I think words should be an empty list (or a singleton list contains an empty string) in _tst2. I found this problem with new _cvs implementation. _cvs () { # "+Qqrwtnlvb:T:e:d:Hfz:s:xa" _arguments -s \ -{a,f,H,l,n,Q,q,r,t,v,w,x} \ '--version' '--help' '--help-commands' '--help-synonyms' '--help-options' \ ... '-z:gzip level:_cvs_gzip_level' \ ':*:cvs command:_cvs_command' } -- Tanaka Akira