From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27576 invoked from network); 30 Mar 2001 16:11:37 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Mar 2001 16:11:37 -0000 Received: (qmail 22864 invoked by alias); 30 Mar 2001 16:11:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13856 Received: (qmail 22839 invoked from network); 30 Mar 2001 16:11:29 -0000 From: "Bart Schaefer" Message-Id: <1010330161103.ZM4360@candle.brasslantern.com> Date: Fri, 30 Mar 2001 16:11:02 +0000 In-Reply-To: <200103300821.KAA22411@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Two missing completion functions that bug me" (Mar 30, 10:21am) References: <200103300821.KAA22411@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Two missing completion functions that bug me MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 30, 10:21am, Sven Wischnowsky wrote: } } > I was thinking it was needed to get other options to be completed in the } > same word, because of: } > } > % vared -a } > % vared -a } > ^cursor silently moves here } > } > [...] Is there a way *other than* adding a ->state } > machine to get other options to complete in the same word but arguments } > in the next for an option like -a? } } You could try the patch below, which does that (automatically) for } me. I'll commit it if we don't find any nasty side effect (or should } I apply it and take it back if we find problems? feel free to commit } it if you like it...) I haven't tried it yet, but what do you do if you *don't* want to allow other single-letter options to be completed in the same word after one that takes an argument (but do complete them in the same word *before* the one that takes the argument)? -- 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