From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8314 invoked from network); 6 Mar 2004 17:38:56 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Mar 2004 17:38:56 -0000 Received: (qmail 1018 invoked by alias); 6 Mar 2004 17:38:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19545 Received: (qmail 1005 invoked from network); 6 Mar 2004 17:38:42 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 6 Mar 2004 17:38:42 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.9.147] by sunsite.dk (MessageWall 1.0.8) with SMTP; 6 Mar 2004 17:38:41 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i26HcdY05330 for zsh-workers@sunsite.dk; Sat, 6 Mar 2004 09:38:39 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040306173839.ZM5329@candle.brasslantern.com> Date: Sat, 6 Mar 2004 17:38:39 +0000 In-Reply-To: <20040306160540.GW19320@pimlott.net> Comments: In reply to Andrew Pimlott "Re: Bug#236350: zsh: _prefix completer broken?" (Mar 6, 11:05am) References: <20040306013513.GA25297@scowler.net> <20040306160540.GW19320@pimlott.net> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Bug#236350: zsh: _prefix completer broken? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 6, 11:05am, Andrew Pimlott wrote: } Subject: Re: Bug#236350: zsh: _prefix completer broken? } } I noticed a couple other things. The documentation says that the } add-space style defaults to true. This doesn't seem to be the case, as } if I complete with the cursor on 'f' in "egrefoo", I get just "p" by } default, and "p " with } } zstyle ':completion:*' completer _complete _prefix } } in my config. The add-space style does default to true, and you're seeing exactly what you should be seeing. What you (and possibly the documentation) missed is that the add-space style applies only to the _expand and _prefix completers, so its default setting makes no difference if you aren't using one of those. } Also, when the completion on prefix succeeds, as in the "egrefoo" } example, there is a beep, unlike with a normal successful completion. This I can reproduce with 4.0.7. However, I'm having some trouble getting _any_ of this to work with 4.2.0-pre-3. Sample output: schaefer<504> egrefoo No matches for `external command', `builtin command', `shell function', `alias', `suffix alias', `reserved word', `job', `parameter', `local directory', `directory in cdpath', or `corrections' Here's 4.0.7 for comparison: schaefer[538] egrefoo schaefer[538] egrepfoo (with a feep) (Aside - in 4.0.7 if I then go on and hit TAB again I get this: schaefer[538] egrepfoo _ Completing external command (with the underscore showing the location of the cursor).) In both 4.2.0-pre-3 and 4.0.7, my completion style looks like this: zstyle ':completion:*' completer \ _oldlist _expand _complete _match _ignored _approximate _prefix However, 4.2.0-pre-3 never gets beyond trying _approximate. The output from complete-debug is nearly a megabyte, but it looks as if it gets to this point in both versions: : _approximate:75:while; [[ _comp_correct -le comax ]] : _approximate:111; compstate[pattern_match]='' : _approximate:113; return 1 : _main_complete:1; unfunction compadd And then 4.2.0-pre-3 goes on like this: : _main_complete:159:for for elif-then; ret=0 : _main_complete:160:for for elif-then; break 2 <-- doesn't happen in 4.0.7 : _main_complete:169; curcontext=::: : _main_complete:170; nm=0