From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21834 invoked from network); 16 Jan 2001 06:41:56 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Jan 2001 06:41:56 -0000 Received: (qmail 24524 invoked by alias); 16 Jan 2001 06:41:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13354 Received: (qmail 24513 invoked from network); 16 Jan 2001 06:41:48 -0000 Message-ID: <20010116064145.94984.qmail@web10404.mail.yahoo.com> Date: Mon, 15 Jan 2001 22:41:45 -0800 (PST) From: Felix Rosencrantz Subject: RE: PATCH: completion positions To: zsh-workers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> (I was thinking I could be useful by adding "insert_positions" output to >> the 54compmatch.ztst test, such that all the cases reported it's value. >> Would this be worthwhile? ) >Yes, that would be nice to have, I think. OK. I'll try to do that this weekend when I have some time. Maybe you'll have thought some more about the next item, and the formatting issues of insert_positions will be decided. >Just for the fun of it I've added this and `#if 0'ed it out because >this isn't enough. We would have to distinguish three cases: > >- something missing at the end >- nothing missing at the end >- nothing missing at the end but the inserted string is equal to one > of the matches > >That last one is the problem (eow should be one of the positions). >It's hard to find out if the inserted string is equal to one of the >matches. I need to think about this some more. That hadn't occurred to me. It does seem like it would be useful in other situations to know if the current string is equal to one of the matches. To add even more information about insert positions, it might be useful to know if a given insert position can match a null string or not. For example, if the choices are A.C.D, A.B.C, A.B.C.D, and the input is A.C, it might be useful to know that the insert position after the A, for some matches, doesn't need any input. I've been using the latest changes all day and haven't had any problems. Thanks again, Sven! -FR. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/