From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2397 invoked from network); 6 Jun 2005 13:38:53 -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:38:53 -0000 Received: (qmail 64260 invoked from network); 6 Jun 2005 13:38:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 13:38:47 -0000 Received: (qmail 25458 invoked by alias); 6 Jun 2005 13:38:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21306 Received: (qmail 25448 invoked from network); 6 Jun 2005 13:38:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Jun 2005 13:38:44 -0000 Received: (qmail 64032 invoked from network); 6 Jun 2005 13:38:44 -0000 Received: from grunt27.ihug.com.au (203.109.249.147) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 13:38:40 -0000 Received: from 203-173-24-138.dyn.iinet.net.au (localhost.localdomain) [203.173.24.138] by grunt27.ihug.com.au with esmtp (Exim 3.35 #1 (Debian)) id 1DfHo9-0006M1-00; Mon, 06 Jun 2005 23:38:32 +1000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id j56DWoT0015772 for ; Mon, 6 Jun 2005 23:32:58 +1000 Received: (from doug@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id j56DWWpo015767 for zsh-workers@sunsite.dk; Mon, 6 Jun 2005 23:32:32 +1000 X-Authentication-Warning: localhost.localdomain: doug set sender to dougkearns@gmail.com using -f Date: Mon, 6 Jun 2005 23:32:32 +1000 From: Doug Kearns To: zsh-workers@sunsite.dk Subject: PATCH: add -s option to _disable Message-ID: <20050606133232.GA16824@localhost.localdomain> Mail-Followup-To: zsh-workers@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Adds the -s option, for removing suffix aliases, to disable completion. Regards, Doug Index: Completion/Zsh/Command/_disable =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_disable,v retrieving revision 1.2 diff -u -r1.2 _disable --- Completion/Zsh/Command/_disable 18 Jun 2004 17:49:21 -0000 1.2 +++ Completion/Zsh/Command/_disable 6 Jun 2005 13:01:21 -0000 @@ -1,8 +1,9 @@ #compdef disable _arguments -C -s -A "-*" -S \ - "(-f -r)-a[act on aliases]:*:aliases:(${(k)aliases} ${(k)galiases})" \ - "(-a -r)-f[act on functions]:*:functions:(${(k)functions})" \ - "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k reswords" \ + "(-f -r -s)-a[act on regular or global aliases]:*:regular or global aliases:(${(k)aliases} ${(k)galiases})" \ + "(-a -r -s)-f[act on functions]:*:functions:(${(k)functions})" \ + "(-a -f -s)-r[act on reserved words]:*:reserved-words:compadd -k reswords" \ + "(-a -f -r)-s[act on suffix aliases]:*:suffix aliases:(${(k)saliases})" \ '-m[treat arguments as patterns]' \ "*:builtin command:(${(k)builtins})"