From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9564 invoked from network); 21 Mar 2001 09:34:02 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Mar 2001 09:34:02 -0000 Received: (qmail 17739 invoked by alias); 21 Mar 2001 09:33:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13682 Received: (qmail 17718 invoked from network); 21 Mar 2001 09:33:50 -0000 From: "Bart Schaefer" Message-Id: <1010321093320.ZM16812@candle.brasslantern.com> Date: Wed, 21 Mar 2001 09:33:20 +0000 References: <200103201536.QAA18944@beta.informatik.hu-berlin.de> <20010320170033.A31547@thelonious.new.ox.ac.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: completion tricks MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii [ Redirected to zsh-workers ] On Mar 20, 4:36pm, Sven Wischnowsky wrote: } Subject: Re: completion tricks } } > The more I think about it, the more I like the idea of `make install' } > (or maybe `make install.zwc') taking the most sensible compilation } > route. } } I wouldn't be against that, I just wouldn't know what style to suggest: } one for all, one for each directory Probably which of these works best depends on whether memory mapping is available. On Mar 20, 5:00pm, Adam Spiers wrote: } Subject: Re: completion tricks } } So far, we have already mentioned [slowness from] _approximate and } _correct (I still haven't got round to figuring out the difference } between the two), and match specs. The difference is that _correct won't treat the word on the line as a substring of a longer match; it just tries to find matching character permutations within the existing word. } (Incidentally there are some rough edges with the caching mechanism } which I *still* haven't got round to smoothing.) _perl_modules is a good example of such roughness, because perl can be invoked by a large number of almost-synonymous names including names with version numbers. I tried to make it do something sensible, but I'm not entirely happy with the result. } Anything else? Any completion that uses _call is potentially slow, of course. Maybe we ought to be caching the _is_gnu association, too. -- 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