From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21579 invoked from network); 9 Sep 2004 15:31:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Sep 2004 15:31:20 -0000 Received: (qmail 39017 invoked from network); 9 Sep 2004 15:31:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Sep 2004 15:31:14 -0000 Received: (qmail 11773 invoked by alias); 9 Sep 2004 15:31:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20344 Received: (qmail 11759 invoked from network); 9 Sep 2004 15:31:00 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Sep 2004 15:31:00 -0000 Received: (qmail 38676 invoked from network); 9 Sep 2004 15:30:43 -0000 Received: from moonbase.zanshin.com (64.84.47.139) by a.mx.sunsite.dk with SMTP; 9 Sep 2004 15:30:41 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.13.1/8.13.1) with ESMTP id i89FUeqB007826 for ; Thu, 9 Sep 2004 08:30:40 -0700 Date: Thu, 9 Sep 2004 08:30:40 -0700 (PDT) From: Bart Schaefer Reply-To: zsh-workers@sunsite.dk To: Zsh hackers list Subject: Re: Trial patch for showing completion in progress In-Reply-To: <200409091113.i89BDHcG013466@news01.csr.com> Message-ID: References: <200409091113.i89BDHcG013466@news01.csr.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Thu, 9 Sep 2004, Peter Stephenson wrote: > Is there a better place for this? On the whole I think this point is OK. How about this? zstyle () { [[ $3 = matcher-list ]] && { zle -R "Trying completion for $2" sleep 1 } builtin zstyle "$@" } > Is there a way of doing this only if completion takes a certain time? I don't think there's a sifficiently low-level loop that's common to all completions. You could try hooking into _wanted or _tags, I suppose. > Is there a way of removing the zle -M output if the completion produced > no output? Using zle -R instead of -M takes care of that. Is there some other bad side-effect of -R?