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

Re: PATCH: Completion/Cvs/



In article <199909011103.NAA00249@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> The patch was mostly cosmetic, in fact. The question is: will users
> think that `-e+::..' does what they want in this case or not?
> Personally I don't care much if the patch is included or, since I
> would use `-e-:..' in such cases.

I think the behavior before 7596 is reasonable though I don't know
command that is fit to use it.

> @@ -535,6 +537,7 @@
>        optbeg="$nargbeg"
>        argbeg="$nargbeg"
>        fromrest=yes
> +      [[ "$def" = \*::* ]] && opt=''
>      fi
>    fi
>  

Hm.

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 '-e+:editor:(vi)' '*::mesg:false' }   
is27e1u11% tst -e<TAB>

This should complete `vi', but does not.

is27e1u11% cvs <TAB>
add        commit     export     log        release    tag        watchers
admin      diff       history    login      remove     unedit     
annotate   edit       import     logout     rtag       update     
checkout   editors    init       rdiff      status     watch      

Also, this should complete cvs common options addition to cvs commands.

Reverting the hunk fix this problem. Is this correct?
-- 
Tanaka Akira



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