From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17620 invoked from network); 11 Apr 2002 19:47:37 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Apr 2002 19:47:37 -0000 Received: (qmail 6012 invoked by alias); 11 Apr 2002 19:47:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16965 Received: (qmail 5997 invoked from network); 11 Apr 2002 19:47:31 -0000 Date: Thu, 11 Apr 2002 12:48:20 -0700 From: John Beppu To: Sven Wischnowsky Cc: zsh-workers@sunsite.dk Subject: Re: Rough Draft of Article on Writing Completion Functions Message-ID: <20020411194820.GB27390@Ax9.org> References: <20020404234932.GA27875@Ax9.org> <15533.19643.474869.613295@wischnow.berkom.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15533.19643.474869.613295@wischnow.berkom.de> User-Agent: Mutt/1.3.27i [ date ] 2002/04/05 | Friday | 09:05 AM [ author ] Sven Wischnowsky > compdef is actually a function defined in compinit. And nowadays > there's not even specialised C-code behind it, just assocs and stuff. fixed. > A `+' after the option name means that the argument may come directly > after the option in the same word or in the next word. That there is > an argument to come is said by the `:descr:action' after the option > description. fixed. > And we normally suggest to not leave out the colon before the action > even if there is no action. Just to help _arguments to parse the stuff > (well, we had some problems which should be fixed, but...). Personally > I also find it a little less confusing with the trailing colon before > the empty action. I kinda hesitated on this one, but I did it, anyway. fixed. > This should use _files. Everyone should use _files. Almost noone > should use _path_files. _files allows users to override glob patterns > and stuff. fixed. > An alternative to this and the stuff in sidebar 4 would be to declare > a local function, call it from the _arguments-actions and there give > it an argument of `flf' or `flc'. I was just being silly towards the end. :-)