From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19792 invoked from network); 29 May 2001 15:00:24 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 2001 15:00:24 -0000 Received: (qmail 14866 invoked by alias); 29 May 2001 15:00:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14540 Received: (qmail 14830 invoked from network); 29 May 2001 15:00:06 -0000 From: "Bart Schaefer" Message-Id: <1010529145811.ZM13318@candle.brasslantern.com> Date: Tue, 29 May 2001 14:58:10 +0000 In-Reply-To: <200105290659.IAA08490@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: vi editting troubles" (May 29, 8:59am) References: <200105290659.IAA08490@beta.informatik.hu-berlin.de> <200105291157.NAA09013@beta.informatik.hu-berlin.de> In-Reply-To: <200105291157.NAA09013@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "PATCH: Re: vi editting troubles" (May 29, 1:57pm) X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: vi editting troubles MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 29, 1:57pm, Sven Wischnowsky wrote: } Subject: PATCH: Re: vi editting troubles } } > Bart Schaefer wrote: } > } > > _comp_setup='setopt ${_comp_options[@]} localtraps; } > > exec > trap - ZERR' } > > } > > and then `eval' that variable in any function that is an entry point into } > > the completion system. } } Here it is. There are still some functions in Base/Widget that don't } eval $_comp_setup but they either call _main_complete later or something } entirely different anyway (and use emulate -L or some such), so I wasn't } sure if we should use it there, too. Some part of my brain says yes, } other parts say no or `for some...'. I think anything that eventually calls _main_complete can be left alone as long as the surrounding code deals properly with ksh_arrays and the set of globbing options. -- 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