From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7848 invoked from network); 30 May 2001 07:20:38 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 May 2001 07:20:38 -0000 Received: (qmail 29435 invoked by alias); 30 May 2001 07:20:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14558 Received: (qmail 29421 invoked from network); 30 May 2001 07:20:30 -0000 From: Sven Wischnowsky Date: Wed, 30 May 2001 09:19:34 +0200 (MET DST) Message-Id: <200105300719.JAA09515@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: vi editting troubles In-Reply-To: <1010529145811.ZM13318@candle.brasslantern.com> Bart Schaefer wrote: > ... > > 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. Yes. While looking again, I found the things in the patch below. That comment was serverely out of date and in these functions we don't need to eval _comp_setup (we didn't need to set the options there either which was what I replaced with the `eval's), because they only set up $curcontext and call _main_complete. Bye Sven Index: Completion/Base/Widget/_correct_word =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Base/Widget/_correct_word,v retrieving revision 1.2 diff -u -r1.2 _correct_word --- Completion/Base/Widget/_correct_word 2001/05/29 11:59:51 1.2 +++ Completion/Base/Widget/_correct_word 2001/05/30 07:15:44 @@ -3,11 +3,6 @@ # Simple completion front-end implementing spelling correction. # The maximum number of errors is set quite high, and # the numeric prefix can be used to specify a different value. -# -# If configurations keys with the prefix `correctword_' are -# given they override those starting with `correct_'. - -eval "$_comp_setup" local curcontext="$curcontext" Index: Completion/Base/Widget/_expand_word =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Base/Widget/_expand_word,v retrieving revision 1.2 diff -u -r1.2 _expand_word --- Completion/Base/Widget/_expand_word 2001/05/29 11:59:51 1.2 +++ Completion/Base/Widget/_expand_word 2001/05/30 07:15:44 @@ -2,8 +2,6 @@ # Simple completion front-end implementing expansion. -eval "$_comp_setup" - local curcontext="$curcontext" if [[ -z "$curcontext" ]]; then -- Sven Wischnowsky wischnow@informatik.hu-berlin.de