From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23496 invoked from network); 23 Aug 2004 15:53:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Aug 2004 15:53:38 -0000 Received: (qmail 46879 invoked from network); 23 Aug 2004 15:53:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Aug 2004 15:53:32 -0000 Received: (qmail 5502 invoked by alias); 23 Aug 2004 15:53:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20281 Received: (qmail 5492 invoked from network); 23 Aug 2004 15:53:19 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 23 Aug 2004 15:53:19 -0000 Received: (qmail 44120 invoked from network); 23 Aug 2004 15:51:48 -0000 Received: from unknown (HELO moonbase.zanshin.com) (167.160.213.139) by a.mx.sunsite.dk with SMTP; 23 Aug 2004 15:51:45 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.12.11/8.12.11) with ESMTP id i7NFpisB027946 for ; Mon, 23 Aug 2004 08:51:44 -0700 Date: Mon, 23 Aug 2004 08:51:44 -0700 (PDT) From: Bart Schaefer Reply-To: zsh-workers@sunsite.dk To: zsh-workers@sunsite.dk Subject: Difficulties with _oldlist Message-ID: 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=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 In _oldlist is this test: elif [[ $WIDGET = *complete(|-prefix|-word) ]] && zstyle -T ":completion:${curcontext}:" old-menu; then This effectively means that, in order to use _oldlist, user-defined completion widgets must have names ending in "complete". This should at the very least be documented. A better solution would be if $WIDGET could be replaced by a different variable, say $WIDGETSTYLE for example, which is set corresponding to the second argument of "zle -C". I.e. if the widget were defined with zle -C blather list-choices blather then at time of call $WIDGETSTYLE would be "list-choices", and _oldlist could examine that instead of $WIDGET. This would also solve a longstanding problem with _complete_debug (which could be tweaked by renaming it to _debug_complete in the meantime).