From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12424 invoked from network); 20 Jul 1999 09:36:48 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Jul 1999 09:36:48 -0000 Received: (qmail 28038 invoked by alias); 20 Jul 1999 09:36:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7219 Received: (qmail 28031 invoked from network); 20 Jul 1999 09:36:28 -0000 Date: Tue, 20 Jul 1999 11:36:24 +0200 (MET DST) Message-Id: <199907200936.LAA01843@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Tue, 20 Jul 1999 09:23:54 +0000 Subject: Re: Getting completion to tell the user what to do Bart Schaefer wrote (to me): > One last tidbit here: > > On Jul 20, 8:53am, Bart Schaefer wrote: > } Subject: Re: Getting completion to tell the user what to do > } > } } Time for dirty tricks: > } } > } } compadd -UX 'Please...' -n '' > } } compstate[insert]='' > } } compstate[list]=list > } } compstate[force_list]=yes > > I still don't understand why compstate[force_list]=yes doesn't do what it > is documented to do, that is, force a listing even if there is only one > match. Oops, forgot that, sorry. Yes, you are right, this is wrong. Bye Sven diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c --- os/Zle/zle_tricky.c Tue Jul 20 11:16:29 1999 +++ Src/Zle/zle_tricky.c Tue Jul 20 11:31:36 1999 @@ -4480,7 +4480,10 @@ minfo.cur = NULL; minfo.asked = 0; do_single(m->matches[0]); - invalidatelist(); + if (compforcelist && *compforcelist && uselist) + showinglist = -2; + else + invalidatelist(); } } else { invalidatelist(); diff -u od/Zsh/compwid.yo Doc/Zsh/compwid.yo --- od/Zsh/compwid.yo Tue Jul 20 11:16:36 1999 +++ Doc/Zsh/compwid.yo Tue Jul 20 11:31:59 1999 @@ -212,7 +212,7 @@ a completion widget and may be changed there. ) item(tt(force_list))( -If the value for the tt(list) key is tt(ambiguous), the list will +If the value for the tt(list) key is tt(autolist) or tt(ambiguous), the list will normally be shown only if there are at least two matches in the list. Setting tt(force_list) to an non-empty string forces the list to be shown even if there is only one match. -- Sven Wischnowsky wischnow@informatik.hu-berlin.de