From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25056 invoked by alias); 3 Feb 2011 14:56:29 -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: 28697 Received: (qmail 16183 invoked from network); 3 Feb 2011 14:56:28 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110203065608.ZM21224@torch.brasslantern.com> Date: Thu, 03 Feb 2011 06:56:08 -0800 In-reply-to: Comments: In reply to cheer_xiao "Re: Slow completion when using aptitude" (Feb 3, 6:21pm) 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> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: cheer_xiao , zsh-workers@zsh.org Subject: Re: Slow completion when using aptitude MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 3, 6:21pm, cheer_xiao wrote: } Subject: Re: Slow completion when using aptitude } } On Mon, Jan 31, 2011 at 8:02 AM, Bart Schaefer } wrote: } > } > So try using this instead: } > } > _deb_packages_update_uninstalled () { } > _deb_packages_update_avail } > _deb_packages_update_installed } > if (( ! $+_deb_packages_cache_uninstalled )); then } > local avail } > for avail in $_deb_packages_cache_avail } > do } > (( ${+_deb_packages_cache_installed[(r)$avail]} )) && continue } > _deb_packages_cache_uninstalledr+=( $avail ) } > done } > fi } > cachevar=_deb_packages_cache_uninstalled } > } } } Was I supposed to include this in my .zshrc and that would solve my } problem, or was it meant to be a hint for developers on fixing the } bug? I have tried the former but nothing seems to change. Sorry, I could have been more specific. Putting it in your .zshrc is unlikely to work because it'll get clobbered when the completion system autoloads the other _deb* functions later. You need to find the file ${^fpath}/_deb_packages and edit it to replace _deb_packages_update_uninstalled with the above.