From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8137 invoked from network); 6 Oct 2000 16:11:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 Oct 2000 16:11:42 -0000 Received: (qmail 7590 invoked by alias); 6 Oct 2000 16:11:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12921 Received: (qmail 7583 invoked from network); 6 Oct 2000 16:11:07 -0000 From: "Bart Schaefer" Message-Id: <1001006161101.ZM25297@candle.brasslantern.com> Date: Fri, 6 Oct 2000 16:11:01 +0000 In-Reply-To: <1001006145848.ZM25084@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: PATCH: Re: Standard setopts for completion system, again" (Oct 6, 2:58pm) References: <200010061253.OAA14888@beta.informatik.hu-berlin.de> <1001006145848.ZM25084@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Option completion after "nono" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 6, 2:53pm, Sven Wischnowsky wrote: } } We use nonomatch not because of globbing, but because of ~... and } =... expansion. Speaking of using nonomatch, have you tried to complete it? zagzig% setopt nonom nonomagicequalsubst nonomarkdirs nonomultios nonomailwarn nonomenucomplete nonomailwarning nonomonitor Hmm, where is it? Delete the `m' and try again: zagzig% setopt nono zsh: do you wish to see all 144 possibilities (48 lines)? y nonoallexport nonoglobalrcs nonomonitor nonoalwayslastprompt nonoglobassign nonomultios nonoalwaystoend nonoglobcomplete nononomatch <--!! nonoappendhistory nonoglobdots nononotify nonoautocd nonoglobsubst nononullglob (remaining 43 lines deleted) Hmm, OK, let's try with only one `no': zagzig% setopt no noallexport noglobalrcs nomonitor noalwayslastprompt noglobassign nomultios noalwaystoend noglobcomplete nonomatch <--!! noappendhistory noglobdots nonotify noautocd noglobsubst nonullglob (remaining 43 lines deleted) So it appears to be impossible to complete "nomatch" and "notify"; only "nonomatch" and "nonotify" can be completed, and then only if you menu- complete them from a word *not* beginning with "nono". There has to be some kind of matcher-magic to insert into _options (and into the example in the "Matching Control" doc) that means to accept matches both with _and without_ the leading "no" deleted, but I can't work out what it is. -- 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