zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: context names
Date: Tue, 15 Feb 2000 10:18:54 +0100 (MET)	[thread overview]
Message-ID: <200002150918.KAA11998@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Tue, 15 Feb 2000 10:02:59 +0100 (MET)


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@informatik.hu-berlin.de


             reply	other threads:[~2000-02-15  9:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-15  9:18 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-02-15  9:02 Sven Wischnowsky
2000-02-14 10:34 Sven Wischnowsky
2000-02-03 13:59 Sven Wischnowsky
2000-02-11 19:16 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200002150918.KAA11998@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).