From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15699 invoked from network); 7 Jul 1999 15:42:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jul 1999 15:42:56 -0000 Received: (qmail 2830 invoked by alias); 7 Jul 1999 15:42:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7017 Received: (qmail 2823 invoked from network); 7 Jul 1999 15:42:46 -0000 From: "Bart Schaefer" Message-Id: <990707153926.ZM2406@candle.brasslantern.com> Date: Wed, 7 Jul 1999 15:39:25 +0000 In-Reply-To: <002301bec87d$7c1264c0$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "Some help neede :-) RE: PS1 or PS2" (Jul 7, 5:34pm) References: <002301bec87d$7c1264c0$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , Subject: Re: Some help neede :-) RE: PS1 or PS2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello; back from my vacation now and buried under Sven and Peter's latest patch fest ... On Jul 7, 5:34pm, Andrej Borsenkow wrote: } Subject: Some help neede :-) RE: PS1 or PS2 } } Looking in pushlineoredit() I found, that it unconditionally set both } ``errflag'' (why?) and ``done''. Obviously, this confused Zle (but I } do not know why). I thought, that I could pass parameter that says "do } not set them" - and here you are! [...] } } with the sad problem, that it still thinks it is on PS2 and won't } return to PS1 (even if I press ^L to redisplay the whole). Um, yes. The reason it sets errflag and done is to force it to leave the PS2 prompt and go back to PS1. If you don't set both, it doesn't work. The only other way to do it would be to add another new global, set it in pushlineoredit(), and test it at several spots where `errflag' and `done' are tested. It wasn't worth messing with that back when I originally implemented pushlineoredit(), but maybe it is now. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com