about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-16 09:06:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-16 09:06:39 +0000
commit72f362cf2c8200e57d7759628bb1ffff105dd631 (patch)
tree7bd47e38cad2d36754cf2ddc4c33d37bc915d4ef /Doc/Zsh
parent77321097e70b492090ab0364dadc1329ecc0b0d8 (diff)
downloadzsh-72f362cf2c8200e57d7759628bb1ffff105dd631.tar.gz
zsh-72f362cf2c8200e57d7759628bb1ffff105dd631.tar.xz
zsh-72f362cf2c8200e57d7759628bb1ffff105dd631.zip
22610: allow zstyle -L to have arguments
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/mod_zutil.yo16
1 files changed, 13 insertions, 3 deletions
diff --git a/Doc/Zsh/mod_zutil.yo b/Doc/Zsh/mod_zutil.yo
index c7342fdba..659b4aff7 100644
--- a/Doc/Zsh/mod_zutil.yo
+++ b/Doc/Zsh/mod_zutil.yo
@@ -7,7 +7,7 @@ The tt(zsh/zutil) module only adds some builtins:
 
 startitem()
 findex(zstyle)
-xitem(tt(zstyle) [ tt(-L) ])
+xitem(tt(zstyle) [ tt(-L) [ var(pattern) [ var(style) ] ] ])
 xitem(tt(zstyle) [ tt(-e) | tt(-) | tt(-)tt(-) ] var(pattern) var(style) var(strings) ...)
 xitem(tt(zstyle -d) [ var(pattern) [ var(styles) ... ] ])
 xitem(tt(zstyle -g) var(name) [ var(pattern) [ var(style) ] ])
@@ -31,8 +31,18 @@ complex patterns are considered to be more specific than the pattern
 `tt(*)'.
 
 The first form (without arguments) lists the definitions in the order
-tt(zstyle) will test them. If the tt(-L) option is given, listing is
-done in the form of calls to tt(zstyle).  Forms with arguments:
+tt(zstyle) will test them.
+
+If the tt(-L) option is given, listing is done in the form of calls to
+tt(zstyle).  The optional first argument is a pattern which will be matched
+against the string supplied as the pattern for the context; note that
+this means, for example, `tt(zstyle -L ":completion:*")' will
+match any supplied pattern beginning `tt(:completion:)', not
+just tt(":completion:*"):  use tt(":completion:\*") to match that.
+The optional second argument limits the output to a specific style (not a
+pattern).  tt(-L) is not compatible with any other options.
+
+The other forms are the following:
 
 startitem()
 item(tt(zstyle) [ tt(-) | tt(-)tt(-) | tt(-e) ] var(pattern) var(style) var(strings) ...)(