about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-20 07:49:07 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-20 07:49:07 +0000
commit780b7ae86edf032ee5343d2afc54cda0eb3a67f3 (patch)
tree65425aa1567ccfdd4698353dcfb97ad3331efb85 /Doc/Zsh
parentc73034d147c0bc2c77bf10d15b0b12781d2b4e3f (diff)
downloadzsh-780b7ae86edf032ee5343d2afc54cda0eb3a67f3.tar.gz
zsh-780b7ae86edf032ee5343d2afc54cda0eb3a67f3.tar.xz
zsh-780b7ae86edf032ee5343d2afc54cda0eb3a67f3.zip
zsh-workers/7454
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo10
1 files changed, 9 insertions, 1 deletions
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:' \