From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8336 invoked from network); 5 Sep 2000 15:58:39 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Sep 2000 15:58:39 -0000 Received: (qmail 24454 invoked by alias); 5 Sep 2000 15:58:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12745 Received: (qmail 24447 invoked from network); 5 Sep 2000 15:58:20 -0000 From: "Bart Schaefer" Message-Id: <1000905155638.ZM18574@candle.brasslantern.com> Date: Tue, 5 Sep 2000 15:56:38 +0000 In-Reply-To: <200009050834.KAA12731@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: "User Contributions" manual, & misc." (Sep 5, 10:34am) References: <200009050834.KAA12731@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: "User Contributions" manual, & misc. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 5, 10:34am, Sven Wischnowsky wrote: } } - The indexes for the styles say `completion style' even for those } styles looked up with a non-:completion context. Sounds wrong, } doesn't it? If only I knew what to write instead... I almost changed the predict-on style index entries to read "predictive typing style" but that's too long to fit in the space info allots. Perhaps "widget style", since it's for a ZLE widget? (But there are completion widgets, too, so ...) } - The place where the zsh/zpty module is mentioned (in info, at the } nslookup function) is messed up (by the automatic module-docs-stuff). Can you explain what's "messed up" in a bit more detail? (I didn't put a cross-reference in there; perhaps that's what you think went wrong?) This patch also throws in some words of wisdom about completers for the :completion:predict context. Index: Doc/Zsh/contrib.yo =================================================================== @@ -451,6 +451,14 @@ _complete _correct zstyle ':completion:predict:*' completer \ _complete) + +It is a good idea to restrict the completers used in prediction, because +they may be automatically invoked as you type. The tt(_list) and +tt(_menu) completers should never be used with prediction. The +tt(_approximate), tt(_correct), tt(_expand), and tt(_match) completers may +be used, but be aware that they may change characters anywhere in the word +behind the cursor, so you need to watch carefully that the result is what +you intended. ) kindex(cursor, completion style) item(tt(cursor))( @@ -640,7 +648,10 @@ findex(nslookup) item(tt(nslookup) [ var(arg) ... ])( This wrapper function for the tt(nslookup) command requires the -tt(zsh/zpty) module. It behaves exactly like the standard tt(nslookup) +tt(zsh/zpty) module (see +ifzman(zmanref(zshmodules))\ +ifnzman(noderef(The zsh/zpty Module))\ +). It behaves exactly like the standard tt(nslookup) except that it provides customizable prompts (including a right-side prompt) and completion of nslookup commands, host names, etc. (if you use the function-based completion system). Completion styles may be set with -- 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