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

Something odd is going on with completion contexts



Here's <C-x h> output from the latest zsh in CVS:

schaefer<500> ls
tags in context :completion::complete:-s::
    argument-rest options  (_arguments _ls _dispatch)
tags in context :completion::complete:-s:argument-rest:
    globbed-files  (_files _arguments _ls _dispatch)

Note that the context-or-command field of the context name string is `-s'
when it should be `ls'.  In fact, it's *always* `-s' no matter what the
command name is:

schaefer<500> gzip
tags in context :completion::complete:-s::
    argument-rest options  (_arguments _gzip _dispatch)
tags in context :completion::complete:-s:argument-rest:
    globbed-files  (_files _gzip _dispatch) 
    directories    (_files _gzip _dispatch) 
    all-files      (_files _gzip _dispatch)

schaefer<500> cvs up
tags in context :completion::approximate-1:-s::
    argument-rest options  (_arguments _cvs _dispatch)
tags in context :completion::approximate-1:-s:argument-rest:
    commands  (_cvs_command _arguments _cvs _dispatch)
tags in context :completion::approximate:::
    corrections original  (_approximate)
tags in context :completion::complete:-s::
    argument-rest options  (_arguments _cvs _cvs _dispatch)
tags in context :completion::complete:-s:argument-rest:
    commands  (_cvs_command _arguments _cvs _cvs _dispatch)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author