Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: two typos in _setup



I've lately changed it back to accept only one argument...

And a bit of documentation for it. I hadn't done that before since one 
doesn't have to call it anyway -- it's called from _descriptions and
one should call that.

Bye
 Sven

diff -u -r oldcompletion/Core/_setup Completion/Core/_setup
--- oldcompletion/Core/_setup	Tue Dec  7 10:23:03 1999
+++ Completion/Core/_setup	Tue Dec  7 10:23:18 1999
@@ -6,7 +6,7 @@
   if [[ "$1" = default ]]; then
     ZLS_COLORS="${(j.:.)${(@)val:gs/:/\\\:}}"
   else
-    eval "ZLS_COLORS=\"(${i})\${(j.:(${i}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
+    eval "ZLS_COLORS=\"(${1})\${(j.:(${1}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
   fi
 fi
 
diff -u olddoc/Zsh/compsys.yo Doc/Zsh/compsys.yo
--- olddoc/Zsh/compsys.yo	Tue Dec  7 10:22:41 1999
+++ Doc/Zsh/compsys.yo	Tue Dec  7 10:36:06 1999
@@ -1673,6 +1673,14 @@
 preference to the tt(format) style for the tt(descriptions) tag. The
 latter is used only if the former is unset.
 )
+item(tt(_setup))(
+This function expects a tag as its argument and sets up the special
+parameters used by the completion system appropriately for the tag,
+using styles such as tt(list-colors) and tt(last-prompt).
+
+Note that this function is called automatically from tt(_description)
+so that one normally don't have to call it explicitly.
+)
 item(tt(_tags))(
 If called with arguments, these are taken as the names of the tags for 
 the types of matches the calling completion function can generate in

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author