From 780b7ae86edf032ee5343d2afc54cda0eb3a67f3 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 20 Aug 1999 07:49:07 +0000 Subject: zsh-workers/7454 --- Doc/Zsh/compsys.yo | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Doc/Zsh') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 13659a92b..4b80fc9db 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -215,7 +215,7 @@ tt(#compdef -p) function tag. The fourth form is like the third, but the var(function) will be called only if no function for the command itself was found or if one was found and it set the tt(_compskip) parameter to a value em(not) -containing the sub-string `tt(patterns)'. +containing the substring `tt(patterns)'. The fifth form defines a widget with the same name as the var(function) which will be called for each of the var(key-sequences); this is like the @@ -944,6 +944,14 @@ tt(_long_options) function where appropriate by giving it the string `tt(--)' as an argument. All arguments after this will be given unchanged to the tt(_long_options) function. +This function also uses one configuration key: tt(option_prefix). If +this is set to a string containing `tt(short)' or `tt(all)' as a +substring, option names beginning with a single minus sign are added +as possible matches only if the word on the line begins with a minus +sign. If the value contains one of the substrings `tt(long)' or +`tt(all)', option names beginning with two minus signs will be +added as matches only if the two minus signs are given on the line. + Example: example(_arguments '-l+:left border:' \ -- cgit 1.4.1