From 337a2e3bfdc5fc6e8d116442cdd939b2df85f90e Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 24 Apr 2005 18:38:01 +0000 Subject: Minor tweak to _generic plus doc fixes for info interpretation of hyphens. --- Doc/Zsh/compwid.yo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Doc/Zsh/compwid.yo') diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo index d8a628bcb..bdbdd99da 100644 --- a/Doc/Zsh/compwid.yo +++ b/Doc/Zsh/compwid.yo @@ -11,7 +11,7 @@ features is described in ifzman(zmanref(zshcompsys))\ ifnzman(the next chapter, noderef(Completion System)), and users with no interest in adding to that system (or, potentially, -writing their own --- see dictionary entry for `hubris') should skip this +writing their own DASH()- see dictionary entry for `hubris') should skip this section. The older system based on the tt(compctl) builtin command is described in ifzman(zmanref(zshcompctl))\ @@ -445,7 +445,7 @@ xitem([ tt(-J) var(name) ] [ tt(-V) var(name) ] [ tt(-X) var(explanation) ] [ tt xitem([ tt(-r) var(remove-chars) ] [ tt(-R) var(remove-func) ]) xitem([ tt(-D) var(array) ] [ tt(-O) var(array) ] [ tt(-A) var(array) ]) xitem([ tt(-E) var(number) ]) -item([ tt(-M) var(match-spec) ] [ tt(--) ] [ var(words) ... ])( +item([ tt(-M) var(match-spec) ] [ tt(-)tt(-) ] [ var(words) ... ])( This builtin command can be used to add matches directly and control all the information the completion code stores with each possible @@ -925,7 +925,7 @@ The pattern var(tpat) may also be one or two stars, `tt(*)' or any number of characters in the trial completion. In this case the pattern must be anchored (on either side); in the case of a single star, the var(anchor) then determines how much of the trial completion -is to be included --- only the characters up to the next appearance of +is to be included DASH()- only the characters up to the next appearance of the anchor will be matched. With two stars, substrings matched by the anchor can be matched, too. @@ -983,7 +983,7 @@ A nice example for the use of tt(*) patterns is partial word completion. Sometimes you would like to make strings like `tt(c.s.u)' complete to strings like `tt(comp.source.unix)', i.e. the word on the command line consists of multiple parts, separated by a dot in this -example, where each part should be completed separately --- note, +example, where each part should be completed separately DASH()- note, however, that the case where each part of the word, i.e. `tt(comp)', `tt(source)' and `tt(unix)' in this example, is to be completed from separate sets of matches -- cgit 1.4.1