From 35b2633ad941966f5fca07b625a594a5b68c0fdb Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 15 Nov 1999 12:01:46 +0000 Subject: manual/8639 --- Doc/Zsh/compsys.yo | 15 +++++++++++++++ Doc/Zsh/mod_computil.yo | 6 ++++++ 2 files changed, 21 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index e973c93e8..9e5a4cdcd 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -949,6 +949,17 @@ first description. The string will be used as the match specification when completing option names and values instead of the default `tt(r:|[_-]=* r:|=*)'. +Finally, the option tt(-C) can be given to make tt(_arguments) modify +the tt(curcontext) parameter when a action of the form +`tt(->)var(state)' is used. This parameter is used to keep track of +the current context and in this case it (and not the parameter +tt(context) as explained above) has to be made local to make sure that +calling functions don't use the modified value. Also, the local +version of tt(curcontext) has to be initialised with the old value as +in: + +example(local curcontext="$curcontext") + The function can also be made to automatically complete long options for commands that support the `tt(-)tt(-help)' option as, for example, most of the GNU commands do. For this, the string `tt(-)tt(-)' must be @@ -1100,6 +1111,10 @@ typeset -A val_args) when using an action of the form `tt(->)var(string)'. With this function the tt(context) parameter will be set to the name of the value whose argument is to be completed. + +Like tt(_arguments', tt(_values) also supports the tt(-C) option in +which case you have to make the parameter tt(curcontext) local instead +of tt(context) (as described above). ) item(tt(_regex_arguments))( This function is a compiler to generate a completion function. The diff --git a/Doc/Zsh/mod_computil.yo b/Doc/Zsh/mod_computil.yo index 541f81605..1a3bceb3c 100644 --- a/Doc/Zsh/mod_computil.yo +++ b/Doc/Zsh/mod_computil.yo @@ -61,4 +61,10 @@ to access the state information to decide what should be completed. item(tt(compvalues))( Like tt(comparguments), but for the tt(_values) function. ) +item(tt(compstyle))( +This builtin implements the internals of the style mechanism. +) +item(tt(comptags), tt(comptry))( +This implements the internals of the tags mechanism. +) enditem() -- cgit 1.4.1