From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15810 invoked from network); 6 May 2000 09:02:07 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 May 2000 09:02:07 -0000 Received: (qmail 12528 invoked by alias); 6 May 2000 09:02:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11227 Received: (qmail 12515 invoked from network); 6 May 2000 09:01:59 -0000 To: zsh-workers@sunsite.auc.dk Subject: empty action handling of _arguments and _alternative MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 06 May 2000 18:03:00 +0900 Message-ID: User-Agent: T-gnus/6.14.1 (based on Gnus v5.8.3) (revision 16) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.6 (i686-pc-linux-gnu) MULE/4.0 (HANANOEN) I found a difference of empty action handling between _arguments and _alternative. Z(5):akr@serein% Src/zsh -f serein% bindkey -e; autoload -U compinit; compinit -D serein% zstyle ':completion:*:messages' format %d serein% compdef _tst1 tst1; _tst1 () { _arguments '-o::o:' ':a:' } serein% compdef _tst2 tst2; _tst2 () { _alternative 'option-o-1:o:' 'argument-1:a:' } serein% tst1 -o a serein% tst2 o a _arguments shows only `a' but _alternative shows both. They has tags `option-o-1' and `argument-1' orderd by defafult tag-order specified in _tags. Is this intentional? -- Tanaka Akira