Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
non-symmetric behavior of _message and compadd
- X-seq: zsh-workers 11182
- From: Tanaka Akira <akr@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: non-symmetric behavior of _message and compadd
- Date: 05 May 2000 18:16:53 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Z(4):akr@serein% Src/zsh -f
serein% bindkey -e; autoload -U compinit; compinit -D
serein% zstyle ':completion*:messages' format %d
serein% compdef _tst1 tst1; _tst1 () { compadd c; _message m }
serein% compdef _tst2 tst2; _tst2 () { _message m; compadd c }
serein% tst1 <TAB>
->
serein% tst1 c
serein% tst2 <TAB>
m
c
The completion behavior depends the order of compadd and _message. If
compadd is preceded, `c' is completed. If _message is preceded, the
list is showed. Is this intentional? I like former, though.
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author