From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10388 invoked from network); 23 Jun 1998 13:02:59 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jun 1998 13:02:59 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id IAA09918; Tue, 23 Jun 1998 08:54:54 -0400 (EDT) Resent-Date: Tue, 23 Jun 1998 08:54:54 -0400 (EDT) Date: Tue, 23 Jun 1998 14:56:02 +0200 (MET DST) Message-Id: <199806231256.OAA10758@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@math.gatech.edu In-reply-to: Didier Verna's message of 23 Jun 1998 13:39:58 +0200 Subject: Re: [Q] user-defined completion Resent-Message-ID: <"WSjlM2.0.vQ2.TMwZr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4149 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Didier Verna wrote: > > Sven Guckes writes: > > > Quoting Didier Verna (verna@inf.enst.fr): > I'd like to write a function for > > special command line completion, but that is > aware of the program whose > > command line we're completing. After reading the > doc, I see that > > user-defined functions get 2 arguments: pre and postfix. Is there a way to > > make such functions aware of the program name ? Any ideas ? > > > Are talking about "completion control" with "compctl"? > > Possibly, yes. > > > > "man zshcompctl"! > > That's what I meant by saying "after reading the doc". But it seems > that the answer is no. So, in case I'm missing something, or I'm just blind, > I would have liked to know if somebody knows a way to achieve this. > Hm, I already answered this: look at the `read'-builtin (options `-c', `-l' and so on). A quick look at the manual reveals that this is really hidden a bit too deeply: it is mentioned at the `-U'-option, not at `-K'. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de