From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24362 invoked from network); 31 May 2000 14:09:52 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 May 2000 14:09:52 -0000 Received: (qmail 15792 invoked by alias); 31 May 2000 14:09:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11690 Received: (qmail 15765 invoked from network); 31 May 2000 14:09:13 -0000 From: "Bart Schaefer" Message-Id: <1000531140856.ZM17997@candle.brasslantern.com> Date: Wed, 31 May 2000 14:08:56 +0000 In-Reply-To: <200005310651.IAA22451@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: #compdef tag and menu-select" (May 31, 8:51am) References: <200005310651.IAA22451@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: #compdef tag and menu-select MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 31, 8:51am, Sven Wischnowsky wrote: } Subject: Re: #compdef tag and menu-select } } > What can I put *in the definition file* for this widget that will enable } > menu selection "by other means"? I tried everything I could think of } } foo() { } compadd ... } MENUSELECT=0 } compstate[insert]=menu } } } zle -C foo complete-word foo } bindkey '...' foo } } Works for me. It doesn't work for me. I get a listing and the first match inserted. Ah, but I don't have the complist module loaded from .zshrc ... that's the missing tidbit. So (prior to the patch for autoloading menu-select) I'd also have to put a zmodload in the definition file. I therefore think it's worth keeping menu-select around as a widget even if just as an autoloading hook. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net