From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12062 invoked from network); 14 Aug 2002 02:27:48 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Aug 2002 02:27:48 -0000 Received: (qmail 22818 invoked by alias); 14 Aug 2002 02:27:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17543 Received: (qmail 22804 invoked from network); 14 Aug 2002 02:27:37 -0000 From: "Bart Schaefer" Message-Id: <1020814022702.ZM31935@candle.brasslantern.com> Date: Wed, 14 Aug 2002 02:27:02 +0000 In-Reply-To: <3D5954F7.mail1L21A9GN@viadomus.com> Comments: In reply to DervishD "Re: About menu selection (again)" (Aug 13, 8:50pm) References: <3D56CD6E.mailMX1LBVZ3@viadomus.com> <1020812060148.ZM28748@candle.brasslantern.com> <3D5906BF.mail17S21TJ8M@viadomus.com> <1020813150050.ZM30758@candle.brasslantern.com> <3D5954F7.mail1L21A9GN@viadomus.com> <3D595620.mail3I11T8QF@viadomus.com> In-Reply-To: <3D595620.mail3I11T8QF@viadomus.com> Comments: In reply to DervishD "More information on why compctl is not loaded" (Aug 13, 8:55pm) X-Mailer: Z-Mail (5.0.0 30July97) To: DervishD , zsh-workers@sunsite.dk Subject: Re: About menu selection (again) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 13, 8:50pm, DervishD wrote: } } Well, when my login zsh starts, the only modules that are loaded } are zsh/zle and zsh/main. zsh/compctl is not there. Is that also the case when you start `zsh -f'? } Maybe I'm not } invoking any builtin in my rc's so compctl is autoloaded :?? That can't be, either, because `zsh -f' doesn't read your rc's ... } Yes, they are statically linked. I'm having an idea... What if I } configured compctl prior to compilation as being statically linked } but NOT autoloaded (I mean, with load=no in the .mdd file)? That might be it, but since you said later that pressing TAB causes it to autoload, it must not be. On Aug 13, 8:55pm, DervishD wrote: } } As I told you, zsh/compctl is not loaded at first. Well, as soon } as I press TAB, both zsh/compctl and zsh/complete are loaded, but if } zsh/complist is loaded, then *only* zsh/complete is loaded too at the } same time and zsh/compctl is not loaded at all... Aha. We have a winner. The default startup code explicitly loads both zsh/zle and zsh/compctl if zsh/zle has not already been loaded. Anything in your rc files that causes zsh/zle to be loaded, including bindkey, causes zsh/compctl to be skipped at startup. Next, the completion code loads zsh/compctl only if zsh/complete is not already loaded, but zsh/complist has a dependency on zsh/complete and zsh/zle, so if you load zsh/complist explicitly it blocks all possible routes to zsh/compctl except explicit autoloading or a compctl command. Whew. This should probably be considered a bug, but the only way I can think of to fix it is to use a different module than zsh/complete as the test for whether a completion system other than compctl is in use. -- 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