From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27191 invoked from network); 2 Jun 2005 15:28:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Jun 2005 15:28:50 -0000 Received: (qmail 39601 invoked from network); 2 Jun 2005 15:28:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Jun 2005 15:28:44 -0000 Received: (qmail 23804 invoked by alias); 2 Jun 2005 15:28:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21303 Received: (qmail 23795 invoked from network); 2 Jun 2005 15:28:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Jun 2005 15:28:40 -0000 Received: (qmail 39306 invoked from network); 2 Jun 2005 15:28:40 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 2 Jun 2005 15:28:36 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IHG00L4HQZKNO13@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Thu, 02 Jun 2005 10:28:33 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j52FSVTa012326; Thu, 02 Jun 2005 08:28:31 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j52FSV9E012325; Thu, 02 Jun 2005 08:28:31 -0700 Date: Thu, 02 Jun 2005 15:28:31 +0000 From: Bart Schaefer Subject: Re: PATCH: expl not always local In-reply-to: <20050602132519.GA10266@localhost.localdomain> To: Doug Kearns , zsh-workers@sunsite.dk Message-id: <1050602152831.ZM12324@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050602132519.GA10266@localhost.localdomain> Comments: In reply to Doug Kearns "PATCH: expl not always local" (Jun 2, 11:25pm) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Jun 2, 11:25pm, Doug Kearns wrote: } } Some completion functions aren't declaring expl as local. } Index: Unix/Type/_file_systems } Index: Unix/Type/_global_tags } Index: Unix/Type/_locales } Index: Unix/Type/_user_at_host } Index: X/Type/_x_visual } Index: Zsh/Context/_equal Careful with these. They may be expecting to be called in a context where the caller has declared expl as a local. In general, if a function file starts with #autload then it's a utility and should NOT declare completion system variables as locals, but if it starts with #compdef then it should declare them local. There are probably some exceptions, of course.