From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25331 invoked from network); 11 Oct 2008 05:36:11 -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 05:36:11 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 86830 invoked from network); 11 Oct 2008 05:35:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Oct 2008 05:35:48 -0000 Received: (qmail 29890 invoked by alias); 11 Oct 2008 05:35:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25841 Received: (qmail 29858 invoked from network); 11 Oct 2008 05:35:26 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 11 Oct 2008 05:35:26 -0000 Received: from mx.spodhuis.org (redoubt.spodhuis.org [193.202.115.177]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 66DD080308BA for ; Sat, 11 Oct 2008 07:35:10 +0200 (CEST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=d200807; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition; b=CHzZ1ZE33he7M0tlJgUkfBwlycPWtAh/SrJuSkrsxKQV6TX9qAAhK4xxrNs+2YqTk/EqWambaisJouiSY/LM6iIRkbXOw4gpCuUR2fo3qnpQ5Sq6lNkpruJGO/UJduHUDtLy8mJxI9miPIyYHEpNRVrqwfZ3HL8lU1onVK4XwpQ=; Received: by smtp.spodhuis.org with local id 1KoX83-000OI6-Us; Sat, 11 Oct 2008 05:35:03 +0000 Date: Fri, 10 Oct 2008 22:35:03 -0700 From: Phil Pennock To: zsh-workers@sunsite.dk Subject: perl -d: completion bug Message-ID: <20081011053503.GA93211@redoubt.spodhuis.org> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: ClamAV 0.92.1/8411/Sat Oct 11 04:40:28 2008 on bifrost X-Virus-Status: Clean My zsh completion-fu is weak, still. Is there a way in which a function calling another function to do the work can interrupt a _wanted() to filter the results, or do I need to re-factor the function currently calling _wanted() into a helper function which does the work and a wrapper with the current name which calls _wanted(), then use that new function? 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::. The current _perl_modules() uses the caching system to good effect and I want to keep that, cache all the modules in the same way (might as well, even for a -d: completion) and then just filter to a sub-set. Eg, given the module Devel::Trace installed, you'd invoke Perl thusly: zsh% perl -d:Trace -e $'print "foo\\n";\nprint "bar\\n";' >> -e:1: print "foo\n"; foo >> -e:2: print "bar\n"; bar zsh% (And if the answer is trivial, please don't wait on a patch from me!) Thanks, -Phil