From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5725 invoked from network); 30 Jul 2008 20:28:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Jul 2008 20:28:11 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 45433 invoked from network); 30 Jul 2008 20:28:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jul 2008 20:28:02 -0000 Received: (qmail 12450 invoked by alias); 30 Jul 2008 20:27:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25359 Received: (qmail 12435 invoked from network); 30 Jul 2008 20:27:58 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 30 Jul 2008 20:27:58 -0000 Received: from mtaout03-winn.ispmail.ntl.com (mtaout03-winn.ispmail.ntl.com [81.103.221.49]) by bifrost.dotsrc.org (Postfix) with ESMTP id 2E83D80524FC for ; Wed, 30 Jul 2008 22:27:54 +0200 (CEST) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20080730202750.ZJBR10791.mtaout03-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Wed, 30 Jul 2008 21:27:50 +0100 Received: from pws-pc ([81.107.40.67]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080730202750.RHZH18637.aamtaout04-winn.ispmail.ntl.com@pws-pc> for ; Wed, 30 Jul 2008 21:27:50 +0100 Date: Wed, 30 Jul 2008 21:27:48 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: completion functions with _arguments -A "-*" and the _approximate completer Message-ID: <20080730212748.5690a58f@pws-pc> In-Reply-To: <20080730131339.GC1113@plenz.com> References: <20080730131339.GC1113@plenz.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/7894/Wed Jul 30 19:26:14 2008 on bifrost X-Virus-Status: Clean On Wed, 30 Jul 2008 15:13:39 +0200 Julius Plenz wrote: > I noticed that a few completion functions don't work work together > with the _approximate completer properly, namely all functions that > contain the argument '-A "-*"' in the _arguments command >... > shouldn't _arguments give _approximate a chance to complete an > option name that was just mis-spelled? IMO this breaks consitency > because you cannot rely on _approximate correcting the option name. Yes, I think you're right. I have no idea how to do it, though. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/