From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4363 invoked from network); 5 Jul 2000 11:03:33 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jul 2000 11:03:33 -0000 Received: (qmail 2412 invoked by alias); 5 Jul 2000 11:03:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12172 Received: (qmail 2404 invoked from network); 5 Jul 2000 11:03:21 -0000 Date: Wed, 5 Jul 2000 13:03:20 +0200 (MET DST) Message-Id: <200007051103.NAA11527@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Wed, 5 Jul 2000 04:52:17 +0000 Subject: Re: coloring of --help completion possible? [moved to workers] Bart Schaefer wrote: > ... > > For example, > > zstyle ':completion:*' list-colors ... > > is considered "more specific" than > > zstyle '*:options' list-colors ... > > so the latter style will never be used if the former is defined. > > Arguably this is backwards and the test for "more specific" should be > done from right to left, but somebody can probably come up with an > example to the contrary. `:completion:*' is considered more specific only because there's one more colon in it. Hm. I hadn't thought about making later components be considered more specific, it sounds sensible. But if combined with the existing rules it would make it much more difficult to guess how specific a pattern is, I think. And in the examples above, `completion' is after a colon, too, exactly like `options'. Unless we ignore leading colons withou anything before them. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de