From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16730 invoked from network); 5 Apr 2009 22:12:00 -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; 5 Apr 2009 22:12:00 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 50428 invoked from network); 5 Apr 2009 22:11:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Apr 2009 22:11:53 -0000 Received: (qmail 9849 invoked by alias); 5 Apr 2009 22:11:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26808 Received: (qmail 9838 invoked from network); 5 Apr 2009 22:11:49 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 5 Apr 2009 22:11:49 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id 60BF782D4B6A for ; Mon, 6 Apr 2009 00:11:34 +0200 (CEST) Received: from torch.brasslantern.com ([96.249.201.13]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KHN00HO4EYTJSKA@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Sun, 05 Apr 2009 17:11:22 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n35MBGvx013161 for ; Sun, 05 Apr 2009 15:11:17 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n35MBFij013160 for zsh-workers@sunsite.dk; Sun, 05 Apr 2009 15:11:15 -0700 From: Bart Schaefer Message-id: <090405151115.ZM13159@torch.brasslantern.com> Date: Sun, 05 Apr 2009 15:11:15 -0700 In-reply-to: <20090405191304.1908fca8@pws-pc> Comments: In reply to Peter Stephenson "Re: PATCH: Add CORRECT_NOCOMPSYS option" (Apr 5, 7:13pm) References: <1238890030-4683-1-git-send-email-ft@bewatermyfriend.org> <090404193718.ZM19801@torch.brasslantern.com> <20090405191304.1908fca8@pws-pc> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@sunsite.dk Subject: Re: PATCH: Add CORRECT_NOCOMPSYS option MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/9206/Sun Apr 5 20:23:11 2009 on bifrost X-Virus-Status: Clean On Apr 5, 7:13pm, Peter Stephenson wrote: } } Right, here's a more general solution. Shout if I've missed something. Looks reasonable to me. Should it be made clearer that this does not apply to the CORRECT_ALL option? I was just looking at adding something to _setup to copy the value of CORRECT_IGNORE into the ignored-patterns style, but that suffers from the same bootstrapping issues as MENUSELECT and ZLS_COLORS. So maybe it would just be better to document it somewhere. Or perhaps it would be good enough simply to set it if it is not set: if ! zstyle -m ':completion:*:-command-:*' ignored-patterns '*' then zstyle ':completion:*:-command-:*' ignored-patterns '_*' fi