From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 570 invoked from network); 26 Jun 2000 15:19:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Jun 2000 15:19:42 -0000 Received: (qmail 17581 invoked by alias); 26 Jun 2000 15:19:23 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3211 Received: (qmail 17572 invoked from network); 26 Jun 2000 15:19:21 -0000 From: "Bart Schaefer" Message-Id: <1000626151901.ZM25800@candle.brasslantern.com> Date: Mon, 26 Jun 2000 15:19:01 +0000 In-Reply-To: <200006261112.NAA19632@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: (forw) --help able programs and completion]" (Jun 26, 1:12pm) References: <200006261112.NAA19632@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-users@sunsite.auc.dk Subject: Re: (forw) --help able programs and completion] Cc: Matthias Kopfermann MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 26, 1:12pm, Sven Wischnowsky wrote: } Subject: Re: (forw) --help able programs and completion] } } > > We have a function to complete the options described by the `--help' } > > output, it's called `_use_lo' } > Hmm, a name that really does not explain anything, does it? It stands for "use long options", because it used to be a wrapper for the now-defunct _long_options completer (which was completely subsumed by _arguments some while back). } > So in order to use it one has to know it first :) } } Yes. However, note that all it does is call _arguments, which is what 98% of the completers for other commands also do. So most commands for which there is a special completion already have the ability to complete based on --help output: It's triggered by completing after `--'. Try, for example % tar -- and watch the fun. Which reminds me, Sven: There's still the bug where setting the `menu' style to `select=N' for some number N is not working at all. Menu selection never starts for me. } The one who wrote it probably should have documented it } somewhere. } } I /think/ it wasn't me this time. This is very interesting. The earliest mention of _use_lo in the zsh-workers archive is PWS saying "What happened to _use_lo? I don't remember removing it." just before he made the 3.1.6-test-1 release. That's the first time it shows up in my home CVS repository, too. The ChangeLog-Release file doesn't mention it at all until Sven started patching it (and the entire contents except for the comment at the top have long been Sven's doing, even if he didn't create the file originally). Of course, the ChangeLog also doesn't make any mention of when _arguments acquired the internals of _long_options. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net