From: Peter Stephenson <pws@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 [thread overview]
Message-ID: <9901301458.AA53177@ibmth.df.unipi.it> (raw)
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
next reply other threads:[~1999-01-30 14:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-30 14:58 Peter Stephenson [this message]
1999-02-01 8:34 Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9901301458.AA53177@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).