From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16002 invoked from network); 28 Feb 2008 18:24:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) 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.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Feb 2008 18:24:26 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 88946 invoked from network); 28 Feb 2008 18:24:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Feb 2008 18:24:19 -0000 Received: (qmail 27980 invoked by alias); 28 Feb 2008 18:24:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24626 Received: (qmail 27964 invoked from network); 28 Feb 2008 18:24:14 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 28 Feb 2008 18:24:14 -0000 Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP id ADECE8026E0B for ; Thu, 28 Feb 2008 19:24:07 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id 8B2AF5C1A4; Thu, 28 Feb 2008 13:24:02 -0500 (EST) Date: Thu, 28 Feb 2008 13:24:02 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Cc: Romain Francoise , 468386@bugs.debian.org Subject: Re: Bug#468386: zsh-beta: Slow command completion Message-ID: <20080228182402.GA24702@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk, Romain Francoise , 468386@bugs.debian.org References: <87zltldnde.fsf@elegiac.orebokech.com> <20080228172715.GA12451@scowler.net> <080228095414.ZM15685@torch.brasslantern.com> <87zltldnde.fsf@elegiac.orebokech.com> <20080228172715.GA12451@scowler.net> <200802281754.m1SHsSf1021072@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <080228095414.ZM15685@torch.brasslantern.com> <200802281754.m1SHsSf1021072@news01.csr.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.91.2/6027/Thu Feb 28 17:20:09 2008 on bifrost X-Virus-Status: Clean On Thu, Feb 28, 2008 at 05:54:28PM +0000, Peter Stephenson wrote: > Limit the extra information for commands to people who *really* want it, > by using another style ("extra_verbose") with an appropriate warning > in the doc that this level of verbosity has speed implications. The > style is then reusable if this crops up elsewhere. On Thu, Feb 28, 2008 at 09:54:14AM -0800, Bart Schaefer wrote: > Or at least protect it with a style that is not generally set for any > other purpose. I went with a hyphen for consistency's sake. Index: Completion/Unix/Type/_path_commands =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_commands,v retrieving revision 1.2 diff -u -r1.2 _path_commands --- Completion/Unix/Type/_path_commands 19 Feb 2008 22:52:22 -0000 1.2 +++ Completion/Unix/Type/_path_commands 28 Feb 2008 18:22:14 -0000 @@ -26,7 +26,7 @@ _path_commands() { local need_desc expl ret=1 -if zstyle -T ":completion:${curcontext}:" verbose; then +if zstyle -T ":completion:${curcontext}:" extra-verbose; then local update_policy first if [[ $+_command_descriptions -eq 0 ]]; then first=yes Index: Doc/Zsh/compsys.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/compsys.yo,v retrieving revision 1.204 diff -u -r1.204 compsys.yo --- Doc/Zsh/compsys.yo 23 Feb 2008 00:10:25 -0000 1.204 +++ Doc/Zsh/compsys.yo 28 Feb 2008 18:22:17 -0000 @@ -1672,6 +1672,12 @@ tt(ignored-patterns) style, so they can be restored to consideration by the tt(_ignored) completer. ) +kindex(extra-verbose, completion style) +item(tt(extra-verbose))( +If set, the completion listing is more verbose at the cost of +a probable decrease in completion speed. Completion performance +will suffer if this style is set to `true'. +) kindex(ignored-patterns, completion style) item(tt(ignored-patterns))( A list of patterns; any trial completion matching one of the patterns