summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-17 19:15:28 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-17 19:15:28 +0000
commit3d81d10195019bb9c8dcaf020f30263de638c5e9 (patch)
treee37af15b0d785631e65e02a79ab01401cd648356 /Doc
parentzsh-workers/10159 (diff)
downloadzsh-3d81d10195019bb9c8dcaf020f30263de638c5e9.tar
zsh-3d81d10195019bb9c8dcaf020f30263de638c5e9.tar.gz
zsh-3d81d10195019bb9c8dcaf020f30263de638c5e9.tar.bz2
zsh-3d81d10195019bb9c8dcaf020f30263de638c5e9.tar.lz
zsh-3d81d10195019bb9c8dcaf020f30263de638c5e9.tar.xz
zsh-3d81d10195019bb9c8dcaf020f30263de638c5e9.tar.zst
zsh-3d81d10195019bb9c8dcaf020f30263de638c5e9.zip
zsh-workers/10165
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo2
-rw-r--r--Doc/Zsh/compsys.yo18
2 files changed, 14 insertions, 6 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index f185d865d..68513d208 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1310,7 +1310,7 @@ the section `Autoloading Functions' in zmanref(zshfunc)
)\
ifnzman(\
noderef(Functions)
-)
+)\
for a description of how autoloaded functions are searched).
If there is at least one var(name) argument, the wordcode for all
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 48e1ffbf6..2a9517ba3 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -292,11 +292,16 @@ of that function.
)
item()(
The var(completer) currently active, i.e. the name of the completer
-function without the leading underscore. Such a completer is in
-overall control of how completion is to be performed; `tt(complete)'
-is the basic one for ordinary completion, but completers may perform
-various related tasks such as correction, or modify the behaviour of a
-later completer (see
+function without the leading underscore, followed by a minus sign and a
+number. The number is 1 on the first call to a completer, 2 on the second
+call to the em(same) completer, etc.; this is used to provide fine control
+of when a completion style is used (see `Standard Styles' in
+ifzman(the section `Completion System Configuration' below)\
+ifnzman(noderef(Completion System Configuration))
+for examples). Such a completer is in overall control of how completion
+is to be performed; `tt(complete)' is the basic one for ordinary
+completion, but completers may perform various related tasks such as
+correction, or modify the behaviour of a later completer (see
ifzman(the section `Control Functions' below)\
ifnzman(noderef(Control Functions))
for more information).
@@ -1294,6 +1299,9 @@ and no other completer will be called.
It is sometimes useful to set this style for the tt(correct) or
tt(approximate) completer so that ignored matches are prefered over
corrections.
+
+example(zstyle ':completion:*:complete-2:*' prefer-ignored yes
+zstyle ':completion:*:(correct|approximate)-1:*' prefer-ignored yes)
)
item(tt(prefix-hidden))(
This is used when matches with a common prefix are added (e.g. option