From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1936 invoked from network); 30 May 2000 15:36:50 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 May 2000 15:36:50 -0000 Received: (qmail 10344 invoked by alias); 30 May 2000 15:36:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11665 Received: (qmail 10337 invoked from network); 30 May 2000 15:36:30 -0000 From: "Bart Schaefer" Message-Id: <1000530153621.ZM27113@candle.brasslantern.com> Date: Tue, 30 May 2000 15:36:20 +0000 In-Reply-To: <200005300816.KAA19770@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: #compdef tag and menu-select" (May 30, 10:16am) References: <200005300816.KAA19770@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: 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 30, 10:16am, Sven Wischnowsky wrote: } } Bart Schaefer wrote: } } > At other places in the completion system we automatically load complist when } > it seems wanted. Perhaps compdef should too? } } Nowadays I'm a bit reluctant to change that because I've too often } thought about removing menu-select -- after all, it's just } menu-complete with enforcing selection, which can be achieved by other } means. Really? What other means? Specifically, I have a widget that is entirely independent of the completion system (except that it's created with zle -C and uses compadd; but it has nothing to do with _main_complete) and *for that widget only* I want menu-select behavior *all the time*. It's convenient to put `#compdef -k menu-select ^X:' at the top of the file that defines this widget and let compinstall bind it for me, even though it's otherwise not part of the completion system. 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, poking into various values of compstate and assigning to MENUSELECT and whatnot, and I couldn't force menu-selection to start if the widget was e.g. bound with `#compdef -k menu-complete ^X:'. } And there is the question if menu-select should be re-bound to } _main_complete when compdef finds a widget using menu-select. In the situation described above I definitely do not want that. -- 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