From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11571 invoked by alias); 28 Feb 2013 09:30:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31083 Received: (qmail 338 invoked from network); 28 Feb 2013 09:30:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_05,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1362043835; bh=45trQgGbRZSYUAJBrZBniMcV37Mj2+dO4mOS/NgRroc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:cc:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=GokHHe0x2UkmIEBhSNtDsJrpTPMwJ+yZwr59e/xSGB0hH+HL/kxizFPJi3N7tPXu1LlUvp6dGROEDXchcBdzNARv4G1spe7BeesZit5EaIxVeT/qonTMnCLNKaFEuKix8XFJ79kAIJnn0SO7aysjkPCuIxrKK8gLWvU+Pnsfiy4= X-Yahoo-Newman-Id: 580029.52377.bm@smtp160.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: K3a_s3YVM1ktJBIvu18xl0pFzzWV0jDu46I5hmlXal0AO7J OjGEfULiEwNo4RCw9YZ6jK7JeLYagYevU5GgWFCRZtXPAZCEBqXaNEmFCx3c Qktz3pgmcQKZRE5TplqSIl2_Dy0W.3Yn7dyfTOWhwMLfz4tDJpr3TzBnKmq3 DZ3B6WY4fFTYSEsYu637jyPF4VZ6SsHiTGyuvGtuelax8J6BpjDVmoV3X2g. FMN9vi44uEETa__traVe_8iLCMbjsKMh5Oz16GL0kHNpS2hhpoaLcgp0LW1c lwz269e52nxa_pxlKRADqpjW2aLqaKz9I8BfgHMxq81N8tsqf6VmKcCB3NzT ryiX9mf444ksi7zYaKpAIYzxynQg4mLMH7sWRoppL_NAPrQnjBNIcN2UAMqM KzFP8j27YiBFtjkUByGjvD9Pf6DmYylrMaNPGBWFjmOfDAQ-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- cc: zsh-workers@zsh.org In-reply-to: From: Oliver Kiddle References: To: joe M Subject: Re: zsh completer _approximate completer MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28017.1362043828.1@thecus.kiddle.eu> Date: Thu, 28 Feb 2013 10:30:34 +0100 Message-ID: <28025.1362043834@thecus.kiddle.eu> Sorry, ignore my last e-mail as I was wrong, again. It seems that in the course of completion, the style is looked up three times: +_tags:31> zstyle -a :completion::complete:cd:: group-order order +_tags:31> zstyle -a :completion::approximate::: group-order order +_tags:31> zstyle -a :completion::approximate-1:cd:: group-order order The first one would match ':completion:*' and so the group-order from that style applies regardless of no matches being generated for that context. The later group-orders are not completely ignored and it seems they would be meaningful if they concerned a different set of groups. I'm assuming they get ignored because they contradict the previous group ordering. This makes sense when you consider that a group-order is something that can't be applied for specific matches: there is one ordering for all matches. Perhaps a group-order from a tag loop where no matches are actually generated should be thrown away. So in conclusion, don't set group-order with a general style. Oliver