From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10875 invoked from network); 26 Oct 2008 19:33:20 -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=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham 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; 26 Oct 2008 19:33:20 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 82913 invoked from network); 26 Oct 2008 19:33:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Oct 2008 19:33:09 -0000 Received: (qmail 18330 invoked by alias); 26 Oct 2008 19:33:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25934 Received: (qmail 18316 invoked from network); 26 Oct 2008 19:33:02 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Oct 2008 19:33:02 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id F07F980524C0 for ; Sun, 26 Oct 2008 20:32:56 +0100 (CET) Received: by cork.scru.org (Postfix, from userid 1000) id 9CE0C1040C3; Sun, 26 Oct 2008 19:32:54 +0000 (UTC) Date: Sun, 26 Oct 2008 19:32:54 +0000 From: Clint Adams To: Ansgar Burchardt , 503575@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#503575: zsh: improvements for "bts" completion Message-ID: <20081026193254.GA7811@scru.org> Mail-Followup-To: Ansgar Burchardt , 503575@bugs.debian.org, zsh-workers@sunsite.dk References: <20081026183550.7426.18125.reportbug@blight.43-1.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081026183550.7426.18125.reportbug@blight.43-1.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/8495/Sun Oct 26 19:12:20 2008 on bifrost X-Virus-Status: Clean On Sun, Oct 26, 2008 at 07:35:50PM +0100, Ansgar Burchardt wrote: > There is no completion for the bts commands subscribe and unsubscribe > yet. Also the "owner" command does only accept a single bug number > (running "bts --no-action owner 1 2 3" gives an error). > > The attached patches should solve these problems. Thanks, Ansgar. I've forward-ported your changes to CVS HEAD: Index: Completion/Debian/Command/_bts =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v retrieving revision 1.10 diff -u -r1.10 _bts --- Completion/Debian/Command/_bts 4 Oct 2008 18:25:44 -0000 1.10 +++ Completion/Debian/Command/_bts 26 Oct 2008 19:31:17 -0000 @@ -25,7 +25,8 @@ _wanted cmd expl 'bts command' compadd show bugs close reopen retitle \ reassign merge unmerge tag tags severity forwarded notforwarded help \ clone submitter found notfound block unblock user usertag usertags \ - package owner noowner reportspam cache cleancache claim unclaim + package owner noowner reportspam cache cleancache claim unclaim \ + subscribe unsubscribe return fi @@ -125,7 +126,7 @@ _wanted sep expl 'separator' compadd -S ' ' , . fi ;; - (submitter|owner) + (submitter) if [[ CURRENT -eq 2 ]]; then _message -e bugnum 'bug number' else @@ -135,6 +136,17 @@ 'bang:bang:compadd \!' fi ;; + (owner|subscribe|unsubscribe) + if [[ CURRENT -eq 2 ]]; then + _message -e bugnum 'bug number' + elif [[ CURRENT -eq 3 ]]; then + _alternative \ + 'email:email address:_email_addresses -c' \ + 'bang:bang:compadd \!' + else + _wanted sep expl 'separator' compadd -S ' ' , . + fi + ;; (found|notfound) if [[ CURRENT -eq 2 ]]; then _message -e bugnum 'bug number'