From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3917 invoked from network); 12 Oct 1999 06:53:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Oct 1999 06:53:56 -0000 Received: (qmail 2639 invoked by alias); 12 Oct 1999 06:53:31 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2671 Received: (qmail 2631 invoked from network); 12 Oct 1999 06:53:31 -0000 Date: Tue, 12 Oct 1999 08:53:29 +0200 (MET DST) Message-Id: <199910120653.IAA03827@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-users@sunsite.auc.dk In-reply-to: =?iso-8859-1?Q?Thomas_K=F6hler?='s message of Mon, 11 Oct 1999 14:55:14 +0200 Subject: Re: coproc tutorial (Re: questions) Thomas Koehler wrote: > > 3.1.6-pws-something (at least the latest pws-6) has Functions/Misc/nslookup > > which uses `vared' to read the user input, thus allowing command line > > editing. Together with the new completion system this function will > > also give you completion *inside* nslookup (and not only nslookup's > > arguments). > > Now this is really cool... how do I enable this? :-) Well, new style completion with the usual call to `compinit' (after autoloading and things), and then just make `nslookup' autoloaded and call it. For my version of `nslookup' here, it works, but as Bart mentioned in 2668, it doesn't work everywhere (and I don't feel like spending more time trying to improve the beast, it was mainly a hack to show how the `compcontext' parameter can be used). > > To workers: seems like noone found this interesting enough to improve > > the code I hacked up. Maybe sometime we could write a generic function > > for this task... > > Allowing completion from within all stdin/stdout-bound programs? > ncftp -L is a candidate here, amongst others... ;-) there are may of them... Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de