From 993db7cf0267b4d9c7f8faaa40af8948ba26a2e2 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 23 Mar 2000 23:59:08 +0000 Subject: zsh-workers/10210 --- Doc/Zsh/compsys.yo | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Doc') 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) ... ])( -- cgit 1.4.1