From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11847 invoked from network); 20 Apr 2006 10:20:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Apr 2006 10:20:55 -0000 Received: (qmail 30279 invoked from network); 20 Apr 2006 10:20:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Apr 2006 10:20:47 -0000 Received: (qmail 16162 invoked by alias); 20 Apr 2006 10:20:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10162 Received: (qmail 16152 invoked from network); 20 Apr 2006 10:20:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Apr 2006 10:20:40 -0000 Received: (qmail 29213 invoked from network); 20 Apr 2006 10:20:40 -0000 Received: from dep.let.rug.nl (129.125.8.60) by a.mx.sunsite.dk with SMTP; 20 Apr 2006 10:20:39 -0000 Received: from dep.let.rug.nl ([129.125.8.60]) by dep.let.rug.nl (SMSSMTP 4.1.11.41) with SMTP id M2006042012203301430 for ; Thu, 20 Apr 2006 12:20:33 +0200 Received: from loki (postfix@loki.let.rug.nl [129.125.8.86]) by dep.let.rug.nl (8.12.11.20060308/8.12.10) with ESMTP id k3KAKWuI003345 for ; Thu, 20 Apr 2006 12:20:32 +0200 (MEST) Received: by loki (Postfix, from userid 7006) id C53AEEA85; Thu, 20 Apr 2006 12:20:34 +0200 (CEST) Date: Thu, 20 Apr 2006 12:20:33 +0200 From: Francisco Borges To: Zsh User Subject: [patch] _aptitude Message-ID: <20060420102032.GA30065@let.rug.nl> Mail-Followup-To: Zsh User Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline X-Operating-System: Linux/2.6.13.4 (i686) X-Editor: GNU Emacs 22.0.50.1 Organization: Alfa Informatica - Rijksuniversiteit Groningen User-Agent: Mutt/1.5.9i X-Whitelist: OK X-Scanned-By: milter-spamc/0.25.321 (dep.let.rug.nl [129.125.8.60]); Thu, 20 Apr 2006 12:20:33 +0200 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I started using aptitude recently and noticed that the completion for some commands were not behaving as expected, so I made some trivial changes to the _aptitude file. Note that (un)markauto are meant to be used on *installed* packages, and so I moved them into the appropriated group. Ideally they should complete on "unmarked/marked" packages, the list of marked packages is available through aptitude -F"%p" search \~M but (i) that's a bit slow and (ii) I couldn't figure a way to include this in the completion function (in the 5min I spent trying that is...) I reckon that some options I just turned ON allow things like packagename=version and that is not being done, yet "aptitude install" also allows for things like "~nzsh" and that's not implemented either; so I concluded that it was OK to do it so. Cheers, -- Francisco Borges --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="_aptitude.diff" --- /home/borges/sys/zsh/zsh-4.3.2/Completion/Debian/Command/_aptitude 2005-08-10 15:00:41.000000000 +0200 +++ _aptitude 2006-04-20 12:06:55.000000000 +0200 @@ -35,13 +35,13 @@ search) _message -e patterns pattern ;; - download) + download|show|changelog) _deb_packages avail && ret=0 ;; - remove|purge|hold) + remove|purge|hold|reinstall|forbid-version|markauto|unmarkauto) _deb_packages installed && ret=0 ;; - install|markauto|unmarkauto) + install) _deb_packages uninstalled && ret=0 ;; *) --bg08WKrSYDhXBjb5--