From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 201 invoked from network); 20 Sep 1999 08:41:15 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Sep 1999 08:41:15 -0000 Received: (qmail 24585 invoked by alias); 20 Sep 1999 08:40:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7941 Received: (qmail 24568 invoked from network); 20 Sep 1999 08:40:50 -0000 Date: Mon, 20 Sep 1999 10:40:45 +0200 (MET DST) Message-Id: <199909200840.KAA06286@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Adam Spiers's message of Fri, 17 Sep 1999 22:44:55 +0100 Subject: Re: simulation of dabbrev-expand Adam Spiers wrote: > How can I ensure that there are no duplicate words in the list of > matches? Even if this isn't the real problem I'm experiencing, it may > well help narrow it down. Bart Schaefer answered: > The completion system *should* be handling this for you, but I'm going to > leave that bug to Sven, [ ... ] Hm, actually I don't think this is a bug -- at least it is intended behaviour. Although I admit that I partly did this for performance reasons. So, should duplicates always be removed or should this be an option (we're in trouble with `compctl', then -- no more option letters). > This questions leads me to another: we have > all these variables at our disposal in the widget functions for > examining the completion system's state in great detail ... but the > one thing we still can't do (AFAICS) is actually see what completions > have currently been calculated. If there was a special array > parameter, `completions' say, then things like removing duplicate > matches, or choosing your own match sorting algorithm (although heaven > forbid I would ever need to implement a quicksort in zsh :-) would > become possible in the shell functions. Have I missed something here? You've missed some mails in which I wrote something about this. See 6117 and 6119 (and somewhere before that, but I don't have this in my list any more, it seems). Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de