zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: 3.1.5-pws-6: zle -l[L] for zle -C
@ 1999-01-30 14:58 Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 1999-01-30 14:58 UTC (permalink / raw)
  To: Zsh hackers list

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 <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re:  PATCH: 3.1.5-pws-6: zle -l[L] for zle -C
@ 1999-02-01  8:34 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-02-01  8:34 UTC (permalink / raw)
  To: zsh-workers


Peter Stephenson wrote:

> 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?)

No, at least none I know of.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-02-01  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-30 14:58 PATCH: 3.1.5-pws-6: zle -l[L] for zle -C Peter Stephenson
1999-02-01  8:34 Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).