From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8775 invoked from network); 11 Mar 2002 11:30:39 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2002 11:30:39 -0000 Received: (qmail 16140 invoked by alias); 11 Mar 2002 11:30:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16801 Received: (qmail 16129 invoked from network); 11 Mar 2002 11:30:34 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Redirection completion In-reply-to: "Sven Wischnowsky"'s message of "Mon, 11 Mar 2002 12:16:17 +0100." <15500.37377.808155.293654@wischnow.berkom.de> Date: Mon, 11 Mar 2002 11:29:06 +0000 Message-ID: <19534.1015846146@csr.com> From: Peter Stephenson Sven Wischnowsky wrote: > The functions calling _dispatch give it a bunch of string that are to > be looked up in order until one with a defined function is found. > And, in this case, _redirect makes sure to give first `-redirect-echo-2>', > then `-redirect-2>'. So you can define a special version for echo and > another one for completion after `2>' everywhere else. _dispatch adds > to this the context `-default-' preceded by the prefix it was given, > so default redirection completion is defined by `-redirect--default-', > which is what is now in _files. Sorry, I didn't make my question clear. I understand how it looks for what to execute to find completions (though I wouldn't have guessed about `-redirect--default-' without looking at the code, although that's logical). My question was, when I get where I'm going and try completion, what context is seen by styles? What I'm worring about is if I'm in some generic form of redirection completion I can still check for `-redirect-echo-2>' in pattern-files, or does the context still just look like `-redirect-2>' or `-redirect--default-'? -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************