From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19702 invoked by alias); 5 Feb 2011 09:22:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28706 Received: (qmail 15900 invoked from network); 5 Feb 2011 09:22:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=pxHoIepyFWDWFCVUoza4rM99fydJEyt38/bwmQJttfg=; b=uuWdi9oc1wMUyJvpKq24ANPjt/aVvSz4hzkLYQg6+tDr0Y5Ps9C1L14jT8PXe0HDwc 0SUeTtcoLq8bDbIfmZB82kFd3eMtb9EeufhFmx2V9FccMFJvyEuv30SEuPJetS7MQfG4 Nf2cm/cSy7iTcOJJ8Vpzli8UGFRlr2GNilyQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=oZrv/ZJfJGEJNTevipBVrveelDURujpgEcDXKbuRks452+xUqXivGxXJMkQFuJt+p0 +czgA25S038Ptpgu6Meq95VedTYArQK3YtbmhtqvvoTBzwhLZhiBZ1TIE8P6hh5L/vWy 392meapJ+P2VObfhSdC6XGWqobuI426/kKGV4= MIME-Version: 1.0 In-Reply-To: References: <87oc74dpuy.fsf@ft.bewatermyfriend.org> <87d3njemu9.fsf@ft.bewatermyfriend.org> <110126090508.ZM2111@torch.brasslantern.com> <110126092944.ZM2205@torch.brasslantern.com> <110129211610.ZM21714@torch.brasslantern.com> <110129231514.ZM21967@torch.brasslantern.com> <110130160220.ZM15815@torch.brasslantern.com> <110203065608.ZM21224@torch.brasslantern.com> <110203193315.ZM22047@torch.brasslantern.com> <110203202907.ZM22434@torch.brasslantern.com> <110204070416.ZM23211@torch.brasslantern.com> From: cheer_xiao Date: Sat, 5 Feb 2011 17:21:58 +0800 Message-ID: Subject: Re: Slow completion when using aptitude To: Bart Schaefer , zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On Sat, Feb 5, 2011 at 5:07 PM, cheer_xiao wrote: > [snip] > Still, it doesn't work. The problem isn't here. When I type "sudo > aptitude install a" and hit Tab, zsh brings up the list of *installed* > packages instead of *uninstalled* ones - exactly the same list when I > type "sudo aptitude remove a" and hit Tab. Perhaps something is wrong > with _aptitude? After examining _aptitude, I think the cause of the problem is most likely that, _deb_packages isn't handing "_deb_packages uninstalled" correctly. I suppose that it does update the corresponding cache by calling "_deb_packages_update_uninstalled", but returned the wrong "_deb_packages_cache_installed" as completion list, instead of "..._uninstalled". I'm not familiar with zsh's completion programming interface, but if nobody's got the time I'm willing to study it and come up with a fix(in a few days).