From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20307 invoked from network); 17 Aug 2002 17:27:31 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Aug 2002 17:27:31 -0000 Received: (qmail 834 invoked by alias); 17 Aug 2002 17:27:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17557 Received: (qmail 818 invoked from network); 17 Aug 2002 17:27:17 -0000 From: "Bart Schaefer" Message-Id: <1020817172639.ZM6260@candle.brasslantern.com> Date: Sat, 17 Aug 2002 17:26:39 +0000 In-Reply-To: <15708.60068.71382.607117@wischnow.berkom.de> Comments: In reply to Sven Wischnowsky "Re: About menu selection (again)" (Aug 16, 2:05pm) 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> <1020814022702.ZM31935@candle.brasslantern.com> <3D5CEB3E.mailV211HY5E@viadomus.com> <15708.60068.71382.607117@wischnow.berkom.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.dk Subject: Re: About menu selection (again) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 16, 2:05pm, Sven Wischnowsky wrote: } } DervishD wrote: } } > Since complist needs compctl to work, could it be added as a dependency? } } That would be wrong because complist doesn't need compctl. It only } `needs' some form of completion to be useful and the new completion } system is only built on top of the more basic `complete' module. The trouble is that the zsh/complete module is not a form of completion; it's a collection of tools for building forms of completion. It's useless unless `zle -C' has been run and that widget calls `compadd'. So the test in zle_tricky.c:docompletion for module_loaded("zsh/complete") is woefully inadequate. We need to at least test for `zle -C'. Could we do something along the lines of shuffling the hookdefs so that the completion hooks are not defined until `zle -C' runs the first time, even if the zsh/complete module has been loaded? And then test for the presence of the hook rather than the presence of the module, and load compctl if the hook doesn't exist? -- 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