From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27113 invoked from network); 23 Feb 1999 08:28:00 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Feb 1999 08:28:00 -0000 Received: (qmail 13139 invoked by alias); 23 Feb 1999 08:27:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5479 Received: (qmail 13131 invoked from network); 23 Feb 1999 08:27:39 -0000 X-Authentication-Warning: c-bart.amazon.com: schaefer set sender to schaefer@tiny.zanshin.com using -f From: Bart Schaefer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14034.15501.825775.605773@c-bart.amazon.com> Date: Mon, 22 Feb 1999 21:28:45 -0800 (PST) To: Sven Wischnowsky Cc: zsh-workers@sunsite.auc.dk Subject: Re: Let's finish this new completion stuff In-Reply-To: <199902220944.KAA20958@beta.informatik.hu-berlin.de> References: <199902220944.KAA20958@beta.informatik.hu-berlin.de> X-Mailer: VM 6.65a under Emacs 20.3.5.1 Reply-To: Bart Schaefer Just a few words ... Sven Wischnowsky writes: > > Making the list of completions generated so far available isn't that > easy without disallowing adding further completions. Also, we can't > easily deliver all the information stored with an array. But now that > we are speaking about sepcial subscript-syntax anyway, how about: > > $matches[num][prefix] gives the `compadd -p'-prefix of the num'th > match > $matches[num][string] the string to list I don't want to get into anything that looks like a multidimensional array. OK would be $matches[prefix(num)] or something ... though in thinking about it a bit further, I think I prefer requiring the (r) or (R) flag to activate any such magic, e.g. $matches[(r)prefix(num)]. The connection to patterns is useful; it's just a special case of a pattern.