zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: problem with _arguments exclusion lists
Date: Tue, 17 Apr 2001 13:28:20 +0200 (MET DST)	[thread overview]
Message-ID: <200104171128.NAA05617@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <20010417104405.42259.qmail@web9307.mail.yahoo.com>

Oliver Kiddle wrote:

> --- Sven Wischnowsky <wischnow@informatik.hu-berlin.de> wrote:
> 
> > Hrmpf. Yes. This was a bit more complicated to fix because the option
> > should still keep itself from being offered as a possible completion
> > a
> > second time unless it may be given more than once.
> 
> I suspected that it mightn't be too easy when I posted the first
> message. The patch seems to fix it but the following still doesn't
> work:
>   _arguments -s '(-conf)-c+:val' '-conf' '-f'
> after -c, it completes with the 'val' message so even after -co, it
> can't complete -conf. I found these problems with _pine which completes
> a number after -c. Maybe there would be a use here for a basic
> completion for numbers so that it can know that -co can not be -c with
> a parameter.

Yes, i was aware of that.  The problem is that some programs would not
continue parsing `-c...' as a possible option, while some would.  I
think I would call such programs `well-behaved'.

I also seem to remember that we discussed this many months ago, but
don't know what we said about all this then.

It seems doable to add another option to _arguments telling it that even
after such an option other options should be completed.  Would that have
to include options described as `-c-:...'?  Or do we even have to allow
specifying that on a per-option basis, i.e. add yet another special
character that may be given after the option name to say that there is
an argument to be completed directly after the option, but other options
might come, too?

Bye
  Sven


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


  reply	other threads:[~2001-04-17 11:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
2001-04-26 13:55 Oliver Kiddle
2001-04-26 14:35 ` Sven Wischnowsky
2001-05-04 16:20   ` Oliver Kiddle
2001-05-07 11:10     ` Sven Wischnowsky
2001-05-08 11:45       ` Oliver Kiddle

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=200104171128.NAA05617@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --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).