From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1456 invoked from network); 11 Oct 2008 18:03:22 -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=-1.3 required=5.0 tests=AWL autolearn=unavailable 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; 11 Oct 2008 18:03:22 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 9650 invoked from network); 11 Oct 2008 18:03:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Oct 2008 18:03:01 -0000 Received: (qmail 6234 invoked by alias); 11 Oct 2008 18:02:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25844 Received: (qmail 6211 invoked from network); 11 Oct 2008 18:02:44 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 11 Oct 2008 18:02:44 -0000 Received: from vms172071pub.verizon.net (vms172071pub.verizon.net [206.46.172.71]) by bifrost.dotsrc.org (Postfix) with ESMTP id 097A780308BA for ; Sat, 11 Oct 2008 20:02:39 +0200 (CEST) Received: from torch.brasslantern.com ([96.238.220.215]) by vms172071.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K8L00FNS64D29J0@vms172071.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 11 Oct 2008 13:02:38 -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 m9BI2an8018488 for ; Sat, 11 Oct 2008 11:02:36 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m9BI2au8018487 for zsh-workers@sunsite.dk; Sat, 11 Oct 2008 11:02:36 -0700 Date: Sat, 11 Oct 2008 11:02:36 -0700 From: Bart Schaefer Subject: Re: perl -d: completion bug In-reply-to: <20081011053503.GA93211@redoubt.spodhuis.org> To: zsh-workers@sunsite.dk Message-id: <081011110236.ZM18486@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20081011053503.GA93211@redoubt.spodhuis.org> Comments: In reply to Phil Pennock "perl -d: completion bug" (Oct 10, 10:35pm) X-Virus-Scanned: ClamAV 0.92.1/8412/Sat Oct 11 14:30:20 2008 on bifrost X-Virus-Status: Clean On Oct 10, 10:35pm, Phil Pennock wrote: } } There's a bug in the Perl completion. perl -d: completes all Perl } modules. What it needs to complete is the sub-string of module names in } the Devel:: namespace, after the Devel::. If it were just a matter of restricting to the "Devel::" namespace, you could change _perl to replace '-d\:-[run under control of a debugging/tracing module]:debugging/tracing module:_perl_modules' \ with '-d\:-[run under control of a debugging/tracing module]:debugging/tracing module:_perl_modules -F "( *~Devel\:\: )"' \ However, also stripping off the "Devel::" from the front of the matches is a bit trickier. What you want is something like "compadd -W" except that works for things other than filename prefixes. My best suggestion is to update _perl_modules to take an additional flag that identifies the module namespace, and use that to change the name of the caching policy, etc. Unfortunately I don't have free time right now to attempt to code it up.