From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3053 invoked from network); 19 Mar 2003 13:46:06 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Mar 2003 13:46:06 -0000 Received: (qmail 26531 invoked by alias); 19 Mar 2003 13:46:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18367 Received: (qmail 26523 invoked from network); 19 Mar 2003 13:46:00 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Mar 2003 13:46:00 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [212.125.75.4] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Mar 2003 13:46:0 -0000 Received: (qmail 4080 invoked from network); 19 Mar 2003 13:45:56 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-16.tower-1.messagelabs.com with SMTP; 19 Mar 2003 13:45:56 -0000 Received: from finches.logica.co.uk ([158.234.142.11]) by iris.logica.co.uk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id NAA29616 for ; Wed, 19 Mar 2003 13:45:55 GMT X-Authentication-Warning: iris.logica.co.uk: Host [158.234.142.11] claimed to be finches.logica.co.uk Received: from finches.logica.co.uk (localhost [127.0.0.1]) by finches.logica.co.uk (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h2JDjQC10139 for ; Wed, 19 Mar 2003 14:45:26 +0100 To: zsh-workers@sunsite.dk X-VirusChecked: Checked In-reply-to: <28975.1047637814@csr.com> From: Oliver Kiddle References: <28975.1047637814@csr.com> Subject: Re: Completion and command versions Date: Wed, 19 Mar 2003 14:45:26 +0100 Message-ID: <10137.1048081526@finches.logica.co.uk> On 14 Mar, Peter wrote: > > The standard way is using the _pick_variant function. > > If it's too dangerous to run the command to find out what it does, you > probably need a style. `variant' is already use by _pick_variant, > unfortunately --- it's not a very good name, since it doesn't give the > variant, it gives the programme to run to pick the variant. Of course > it could be set to a function that simply returns the type, but that > method doesn't have a sensible default. I just checked this again and _pick_variant doesn't use `variant' as a style. It sets the tag name to `variant' when looking up the `command' style. So the `variant' style is not already in use. Oliver