From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25701 invoked from network); 6 Jun 2005 13:39:10 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Jun 2005 13:39:10 -0000 Received: (qmail 65122 invoked from network); 6 Jun 2005 13:39:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 13:39:05 -0000 Received: (qmail 25708 invoked by alias); 6 Jun 2005 13:39:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21307 Received: (qmail 25698 invoked from network); 6 Jun 2005 13:39:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Jun 2005 13:39:02 -0000 Received: (qmail 64790 invoked from network); 6 Jun 2005 13:39:02 -0000 Received: from grunt21.ihug.com.au (203.109.249.141) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 13:38:58 -0000 Received: from 203-173-24-138.dyn.iinet.net.au (localhost.localdomain) [203.173.24.138] by grunt21.ihug.com.au with esmtp (Exim 3.35 #1 (Debian)) id 1DfHoR-0005iS-00; Mon, 06 Jun 2005 23:38:53 +1000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id j56DXHT0015783 for ; Mon, 6 Jun 2005 23:33:26 +1000 Received: (from doug@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id j56DX6ZA015777 for zsh-workers@sunsite.dk; Mon, 6 Jun 2005 23:33:06 +1000 X-Authentication-Warning: localhost.localdomain: doug set sender to dougkearns@gmail.com using -f Date: Mon, 6 Jun 2005 23:33:06 +1000 From: Doug Kearns To: zsh-workers@sunsite.dk Subject: Re: PATCH: expl not always local Message-ID: <20050606133306.GB16824@localhost.localdomain> Mail-Followup-To: zsh-workers@sunsite.dk References: <20050602132519.GA10266@localhost.localdomain> <1050602152831.ZM12324@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1050602152831.ZM12324@candle.brasslantern.com> User-Agent: Mutt/1.4i 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=BAYES_00,RCVD_IN_SORBS_WEB autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Thu, Jun 02, 2005 at 03:28:31PM +0000, Bart Schaefer wrote: > 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. These seem to be the only (Type|Context) functions that haven't declared this local. Regards, Doug