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

Re: PATCH: context names



Waitamoment...

Hm, we can't get defaults from $SELECTMIN and $ZLS_COLO(|U)RS because
they may contain the values the completion system set them to.

Should we put them back in compinit?

Bye
 Sven

diff -ru ../z.old/Completion/Core/_main_complete Completion/Core/_main_complete
--- ../z.old/Completion/Core/_main_complete	Tue Feb 15 10:04:28 2000
+++ Completion/Core/_main_complete	Tue Feb 15 10:16:42 2000
@@ -45,7 +45,14 @@
 
 _setup default
 _def_menu_style=( "$_last_menu_style[@]"
-                  ${SELECTMIN+select${SELECTMIN:+\=$SELECTMIN}} )
+
+# We can't really do that because the current value of $SELECTMIN
+# may be the one set by this function.
+# There is a similar problem with $ZLS_COLORS in _setup.
+
+#                  ${SELECTMIN+select${SELECTMIN:+\=$SELECTMIN}}
+
+                )
 _last_menu_style=()
 
 # Get the names of the completers to use in the positional parameters.
diff -ru ../z.old/Completion/Core/_setup Completion/Core/_setup
--- ../z.old/Completion/Core/_setup	Tue Feb 15 10:04:28 2000
+++ Completion/Core/_setup	Tue Feb 15 10:15:41 2000
@@ -9,9 +9,13 @@
   else
     eval "ZLS_COLORS=\"(${1})\${(j.:(${1}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
   fi
-elif [[ "$1" = default && -n "$ZLS_COLORS$ZLS_COLOURS" ]]; then
-  zmodload -i zsh/complist
-  ZLS_COLORS="$ZLS_COLORS$ZLS_COLOURS"
+
+# Here is the problem mentioned in _main_complete.
+
+# elif [[ "$1" = default && -n "$ZLS_COLORS$ZLS_COLOURS" ]]; then
+#   zmodload -i zsh/complist
+#   ZLS_COLORS="$ZLS_COLORS$ZLS_COLOURS"
+
 fi
 
 if zstyle -s ":completion:${curcontext}:$1" list-packed val; then

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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