From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8616 invoked from network); 18 Jul 2006 19:30:31 -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=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham 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:30:31 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 98570 invoked from network); 18 Jul 2006 19:30:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jul 2006 19:30:23 -0000 Received: (qmail 12526 invoked by alias); 18 Jul 2006 19:30:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10530 Received: (qmail 12513 invoked from network); 18 Jul 2006 19:30:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Jul 2006 19:30:14 -0000 Received: (qmail 97489 invoked from network); 18 Jul 2006 19:30:14 -0000 Received: from mta09-winn.ispmail.ntl.com (HELO mtaout03-winn.ispmail.ntl.com) (81.103.221.49) by a.mx.sunsite.dk with SMTP; 18 Jul 2006 19:30:13 -0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20060718193011.TIWO1865.mtaout03-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Tue, 18 Jul 2006 20:30:11 +0100 Received: from pwslaptop.csr.com ([81.107.41.155]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20060718193011.MNWH1421.aamtaout02-winn.ispmail.ntl.com@pwslaptop.csr.com> for ; Tue, 18 Jul 2006 20:30:11 +0100 Received: from pwslaptop.csr.com (pwslaptop.csr.com [127.0.0.1]) by pwslaptop.csr.com (8.13.6/8.13.4) with ESMTP id k6IJU8MS002714 for ; Tue, 18 Jul 2006 20:30:08 +0100 Message-Id: <200607181930.k6IJU8MS002714@pwslaptop.csr.com> From: Peter Stephenson To: "Zsh Users" Subject: Re: Equivalent of compctl -L with "new" completion system? In-Reply-To: Message from "John Reese" of "Tue, 18 Jul 2006 11:32:54 PDT." <488030720607181132l372c5613y91108869dac9760b@mail.gmail.com> Date: Tue, 18 Jul 2006 20:30:08 +0100 "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. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/