From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22533 invoked by alias); 3 Mar 2011 15:38:58 -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: 28845 Received: (qmail 29120 invoked from network); 3 Mar 2011 15:38:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at klanderman.net does not designate permitted sender hosts) From: Greg Klanderman To: zsh-workers@zsh.org Subject: Re: PATCH: zstyle to control completion of functions/parameters beginning with underscore Reply-To: gak@klanderman.net Date: Thu, 03 Mar 2011 10:33:48 -0500 In-Reply-To: <110302153027.ZM10605@torch.brasslantern.com> (Bart Schaefer's message of "Wed, 02 Mar 2011 15:30:27 -0800") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.17 (linux) References: <1238890030-4683-1-git-send-email-ft@bewatermyfriend.org> <090404193718.ZM19801@torch.brasslantern.com> <20090405191304.1908fca8@pws-pc> <090405151115.ZM13159@torch.brasslantern.com> <20090406100929.505617e2@news01> <2d460de70905270930j681da6a5kf7848d67d89f0c69@mail.gmail.com> <20090527175941.3bbe2eba@news01> <2d460de70905280148iebfcegcb4143c33e510efd@mail.gmail.com> <7658.1299027908@thecus> <110302153027.ZM10605@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > How about if prefix-needed becomes a ternary, with default "auto" where > the behavior of "auto" is defined to mean "false" in the new contexts > where you are applying it and "true" in all the contexts where it now > applies? I'm not sure that's any different from documenting that the default depends on the context (which you have to do either way), you're just naming that behavior. Easiest is to just use 'zstyle -t' in the new use cases and leave the 'zstyle -T' as-is in the existing twelve uses. If you like 'auto', then it's not much more effort to add all the true strings plus 'auto' to the existing 'zstyle -T' calls. The new uses would remain 'zstyle -t' as 'auto' and unset mean false in this context. Somebody make a choice and I'll do it.. Greg