From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: _arguments (was Re: options are completed for non-option argument.)
Date: Mon, 17 Jul 2000 10:01:26 +0200 (MET DST) [thread overview]
Message-ID: <200007170801.KAA05649@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Tanaka Akira's message of 16 Jul 2000 15:23:12 +0900
Tanaka Akira wrote:
> Z(2):akr@flux% Src/zsh -f
> flux% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> flux% _tst () {
> function> _arguments -s '-a' '-b' '-c' ':words:compadd - abyyy abzzz'
> function> }
> flux% tst ab<TAB><TAB>
> -a -c
>
> Options are completed for non-option argument.
Oops. Problem with 12241, which should have fixed:
Wayne Davison wrote:
> I haven't had a chance to look into this yet, but if I type
> "perl -cw file<tab>" it won't complete the perl script. I have
> to type "perl -c -w file<tab>", which is a pain.
Back to another message from Akira:
> Z(2):akr@flux% Src/zsh -f
> flux% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> flux% _tst () { _arguments '-e::*last:b:' }
> flux% tst -e <TAB>
> _arguments:294: command not found: b
The syntax is `-e:*last::message:action'.
Bye
Sven
Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.37
diff -u -r1.37 computil.c
--- Src/Zle/computil.c 2000/07/13 11:04:00 1.37
+++ Src/Zle/computil.c 2000/07/17 07:49:13
@@ -1112,7 +1112,7 @@
}
} else if (!p || (p && !p->active))
return NULL;
- pp = p;
+ pp = (p->name[0] == pre ? p : NULL);
p = NULL;
}
if (pp && end)
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-07-17 8:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-17 8:01 Sven Wischnowsky [this message]
2000-07-17 10:24 ` Tanaka Akira
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=200007170801.KAA05649@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--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).