From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes Message-Id: <9901301458.AA53177@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: PATCH: 3.1.5-pws-6: zle -l[L] for zle -C Date: Sat, 30 Jan 1999 15:58:58 +0100 From: Peter Stephenson X-Mailing-List: 5122 This fixes the bug I just reported with zle -lL, plus changes the -c to -C for zle -l, as well as turning -c into -C in new-completion-examples (are there any other places to change yet?) Probably zle -c will disappear in pws-7, so you've got about a week to swap your init files. --- Src/Zle/zle_thingy.c.list Fri Jan 29 11:21:20 1999 +++ Src/Zle/zle_thingy.c Sat Jan 30 15:51:03 1999 @@ -390,7 +390,7 @@ if(w->flags & WIDGET_INT) return; if(list) { - fputs("zle -N ", stdout); + printf("zle -%c ", (w->flags & WIDGET_NCOMP) ? 'C' : 'N'); if(t->nam[0] == '-') fputs("-- ", stdout); quotedzputs(t->nam, stdout); @@ -406,7 +406,7 @@ } else { nicezputs(t->nam, stdout); if (w->flags & WIDGET_NCOMP) { - fputs(" -c ", stdout); + fputs(" -C ", stdout); nicezputs(w->u.comp.wid, stdout); fputc(' ', stdout); nicezputs(w->u.comp.func, stdout); --- Misc/new-completion-examples.list Wed Jan 27 13:37:56 1999 +++ Misc/new-completion-examples Sat Jan 30 15:56:19 1999 @@ -1,7 +1,7 @@ # Define a new widget behaving like `expand-or-complete' but calling the # function `main-complete' to generate matches. -zle -c my-comp expand-or-complete main-complete +zle -C my-comp expand-or-complete main-complete bindkey '\C-i' my-comp -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy