From: Oliver Kiddle <opk@u.genie.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: problem with _arguments exclusion lists
Date: Fri, 04 May 2001 17:20:52 +0100 [thread overview]
Message-ID: <3AF2D6E4.7FCCFD98@u.genie.co.uk> (raw)
In-Reply-To: <200104261435.QAA05286@beta.informatik.hu-berlin.de>
Sven Wischnowsky wrote:
>
> > [[ -n $PREFIX$SUFFIX && "$PREFIX$SUFFIX" != $~1 ]] && return 1
>
> If we do that, no options will be completed after, e.g. `pine -c' (with
> your patch), because then the action returned zero.
You're right. I got mixed up. I still don't like that last line in
_guard though. I think that maybe when _guard returns 0, matching
options should still be offered so a -c3nf option could be matched and
options would be offered after pine -c without that last line in _guard.
The important original point was really what happens when _guard returns
1 and that is now right.
Apart from the minor point above, I am now happy that this all works so
thanks Sven. Sorry for being slow about replying to this last e-mail
> I admit that I never thought about using this in a normal-argument spec
> (non-option-argument). Isn't that already covered enough by the normal
> behaviour of _arguments? I.e., using some other action for that
> argument that displays the message and handles the colon (I don't know
> how this argument has to look like...).
It can't really be handled by anything else unless there is a specific
maximum to X display numbers allowing us to add all possibilities.
_guard is actually particularly valuable in the non-option argument case
because before the recent changes options would not complete. The
problem really is that the _guard patterns have to match fully, not
partially: _vnc can be fixed by using the pattern (|:[0-9]#) which I'll
commit later if _guard stays as it is.
Oliver
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp
next prev parent reply other threads:[~2001-05-04 16:22 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-26 13:55 Oliver Kiddle
2001-04-26 14:35 ` Sven Wischnowsky
2001-05-04 16:20 ` Oliver Kiddle [this message]
2001-05-07 11:10 ` Sven Wischnowsky
2001-05-08 11:45 ` Oliver Kiddle
-- strict thread matches above, loose matches on Subject: below --
2001-04-12 14:32 Oliver Kiddle
2001-04-17 9:50 ` Sven Wischnowsky
2001-04-17 10:44 ` Oliver Kiddle
2001-04-17 11:28 ` Sven Wischnowsky
2001-04-17 13:55 ` Oliver Kiddle
2001-04-17 14:10 ` Sven Wischnowsky
2001-04-19 14:01 ` Oliver Kiddle
2001-04-20 8:31 ` Sven Wischnowsky
2001-04-23 8:59 ` Oliver Kiddle
2001-04-24 10:00 ` Sven Wischnowsky
2001-04-26 11:00 ` Oliver Kiddle
2001-04-26 12:10 ` Sven Wischnowsky
2001-04-25 7:10 ` 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=3AF2D6E4.7FCCFD98@u.genie.co.uk \
--to=opk@u.genie.co.uk \
--cc=zsh-workers@sunsite.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).