Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

non-symmetric behavior of _message and compadd



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