From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25906 invoked from network); 18 Jul 2006 19:31:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,RCVD_IN_BL_SPAMCOP_NET autolearn=no version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Jul 2006 19:31:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 3940 invoked from network); 18 Jul 2006 19:31:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jul 2006 19:31:48 -0000 Received: (qmail 14016 invoked by alias); 18 Jul 2006 19:31:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10531 Received: (qmail 14005 invoked from network); 18 Jul 2006 19:31:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Jul 2006 19:31:40 -0000 Received: (qmail 2741 invoked from network); 18 Jul 2006 19:31:40 -0000 Received: from ug-out-1314.google.com (66.249.92.170) by a.mx.sunsite.dk with SMTP; 18 Jul 2006 19:31:39 -0000 Received: by ug-out-1314.google.com with SMTP id c2so67890ugf for ; Tue, 18 Jul 2006 12:31:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oHc750ljXA+/L23YK+mJxdHgeJb9auJBgH3wpXaTWXUJBYhW6JNm3XH56QT9sHzELR/CUW0wac/VJfAX4GsunP3lVWbnV57PDqLshjAiUiqoqHSX8xSOsrIwl+S11V+3KbRvrisgjcyuouL6yIJfgxD9hrO4Ot4hKgmIcIh6uiU= Received: by 10.67.100.17 with SMTP id c17mr4031452ugm; Tue, 18 Jul 2006 12:31:38 -0700 (PDT) Received: by 10.66.238.10 with HTTP; Tue, 18 Jul 2006 12:31:38 -0700 (PDT) Message-ID: <488030720607181231p38f3280ct85f824e1d650256d@mail.gmail.com> Date: Tue, 18 Jul 2006 12:31:38 -0700 From: "John Reese" To: "Peter Stephenson" Subject: Re: Equivalent of compctl -L with "new" completion system? Cc: "Zsh Users" In-Reply-To: <200607181930.k6IJU8MS002714@pwslaptop.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <488030720607181132l372c5613y91108869dac9760b@mail.gmail.com> <200607181930.k6IJU8MS002714@pwslaptop.csr.com> On 7/18/06, Peter Stephenson wrote: > "John Reese" wrote: > > Is there a command or function that will (a) list all commands that > > have custom (zshcompsys) completions and indicate what they are, and > > (b) do the same, but only for a given command, like > > > > (a) compctl -L > > and > > (b) compctl -L svn > > You can do > > print -l ${(k)_comps} > > to show the contexts for which there are completions. This includes > both command names and special contexts such as > -value-,DISPLAY,-default- (the value of the DISPLAY environment variable). > > print ${_comps[svn]} > > will show you if a given command is handled and if so by what function. Neat. Thanks.