about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-23 23:59:08 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-23 23:59:08 +0000
commit993db7cf0267b4d9c7f8faaa40af8948ba26a2e2 (patch)
treea7124bd5d1ce193f582e10873b229cc0b3214507 /Doc
parent2b38f6f4e5b78c26ae617dfe6974a2de98d1e455 (diff)
downloadzsh-993db7cf0267b4d9c7f8faaa40af8948ba26a2e2.tar.gz
zsh-993db7cf0267b4d9c7f8faaa40af8948ba26a2e2.tar.xz
zsh-993db7cf0267b4d9c7f8faaa40af8948ba26a2e2.zip
zsh-workers/10210
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/compsys.yo14
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 1fc57de86..79ad8df50 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1581,12 +1581,6 @@ value of the completer functions to decide if other completers should be
 called. If the return value is zero, no other completers are tried and the
 tt(_main_complete) function returns.
 
-Immediately before returning the tt(_main_complete) function calls all
-functions whose names are given in the tt(comppostfuncs) array and
-then resets it to an empty array. This can be used by completion
-functions or by other ZLE widgets calling completion to register code
-that is to be executed after all matches have been added.
-
 The following completer functions are contained in the distribution (users
 may write their own):
 
@@ -1980,6 +1974,14 @@ generating matches all follow the convention of returning zero if they
 generated completions and non-zero if no matching completions could be 
 added.
 
+When writing completion functions or other ZLE widgets that call
+completion, it might be interesting to know about two more features
+offered by the tt(_main_complete) function. The arrays
+tt(compprefuncs) and tt(comppostfuncs) may be set to contain names of
+functions that are to be called immediately before or after completion 
+has been tried. The functions will only be called once, unless they
+put themselves into the array again.
+
 startitem()
 findex(_funcall)
 item(tt(_funcall) var(return) var(name) [ var(args) ... ])(