From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3277 invoked from network); 21 Sep 2000 06:33:47 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Sep 2000 06:33:47 -0000 Received: (qmail 5116 invoked by alias); 21 Sep 2000 06:33:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12854 Received: (qmail 5109 invoked from network); 21 Sep 2000 06:33:13 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Bart Schaefer" , Subject: RE: PATCH: _expand, _expand_word, and their doc Date: Thu, 21 Sep 2000 10:33:10 +0400 Message-ID: <000201c02395$cf594fd0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <1000920175716.ZM31823@candle.brasslantern.com> > +inserted into the command line. This style is most useful when set > +only for very specific completion contexts. I continue to ask myself just how useful it is. completions style is tested only in _expand. It is either called from _main_complete or directly (currently from _expand_word only). At the time when completions style is tested, context is :completion::expand:: -or- :completion:expand-word:expand:: (I just realized, that completer has fixed value in this case :-) Even if _main_complete would have set command name, the most sepecific context would be :completion:*:expand:${command_name}:: Anything more specific is set (if ever) only inside of per-command competion function. It means, that at most you can request insertion of all completions for a given command. It is very unlikely that anybody ever really wants it. While in case of 'cvs rm TAB' insertion is appropriate, it is hardly useful in case of 'cvs -TAB'. And currently even this is not possible - at most you can state that all completions should be inserted for a given widget :-)) Unless I again miss something obvious. -andrej