From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1054 invoked from network); 8 Jul 2000 07:54:06 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?1PnyZxT5zF4nQA/lg6antAhgAUGBVkgQ?@203.24.36.3) by ns1.primenet.com.au with SMTP; 8 Jul 2000 07:54:05 -0000 Received: (qmail 4836 invoked from network); 8 Jul 2000 06:07:23 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns2.primenet.com.au with SMTP; 8 Jul 2000 06:07:23 -0000 Received: (qmail 7350 invoked by alias); 8 Jul 2000 06:07:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12200 Received: (qmail 7343 invoked from network); 8 Jul 2000 06:07:10 -0000 From: "Bart Schaefer" Message-Id: <1000708060653.ZM2459@candle.brasslantern.com> Date: Sat, 8 Jul 2000 06:06:52 +0000 In-Reply-To: <1000707193233.ZM1522@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: completing directory path" (Jul 7, 7:32pm) References: <0FXC00J0TARQE8@la-la.cambridgesiliconradio.com> <1000707193233.ZM1522@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: completing directory path MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 7, 7:32pm, Bart Schaefer wrote: } } On Jul 7, 7:16pm, Peter Stephenson wrote: } } } } > On Jul 7, 5:12pm, Peter Stephenson wrote: } } > } } } > } completion has stopped working on ~1/... etc. } } > } } > What are your styles? This works for me. Well, it sort of works; I first } } > get ~1/ --> ~+1/ and then completion after ~+1/ works as expected. } } } } I can reproduce it with completely vanilla new completion, but it's weirder } } However, *I'm* now getting some inconsistent behavior, because it's not } replacing ~1 with ~+1 which it definitely was before. Ahem. It helps to have run compinit in order to see the new completion behavior. With compinit -D, I get: zagzig% autoload -U compinit; compinit -D zagzig% pushd /tmp /tmp ~ zagzig% cd ~1/i (feep) TAB or C-d doesn't matter, I just get feep. However: zagzig% cd ~1/ zagzig% cd ~+1/ Thereafter, completion works normally: zagzig% cd ~+1/i zagzig% cd ~+1/images/ So I still can't reproduce what PWS reported (the "command not found" at line 153 of _main_complete). So this question stands: } Does it perhaps have something more to do with the contents of directories } in the dirstack than just whether there is a unique match for one of the } files? However, looking at C-x? output, there appears to be a problem at line 560 of _path_files. There's a call to compadd like this: +_path_files:559> compquote tmp4 tmp1 +_path_files:560> compadd -Qf -J -default- -p ~+1/ -W /home/schaefer/ -M r:|/=* r:|=* -a tmp1 Note the `-p ~+1/' -- the actual string from the line is ~1, so that compadd fails to add anything even though $tmp1 has the correct value ("images"). This has ultimately come from line 214, which sticks the `+' into $linepath. -- 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