zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: _alternative -O undocumented?
Date: Sat, 14 May 2011 19:02:29 +0100	[thread overview]
Message-ID: <20110514190229.6614819e@pws-pc.ntlworld.com> (raw)
In-Reply-To: <BANLkTi=OHW9PFwphRU8Ebjth4GZd0HcGMw@mail.gmail.com>

On Sat, 14 May 2011 03:25:15 +0200
Mikael Magnusson <mikachu@gmail.com> wrote:
> It seems _alternative allows passing arbitrary options down to compadd
> by doing foo=( '-V' 'foo' ); _alternative -O foo, but the
> documentation doesn't mention it. _chmod, _which, _zstyle, _aliases
> and _command_names make use of this feature. _values has this feature
> too and documents it,
> 
> If  the first argument is the option `-O name', it will be used in the
> same way as by the _arguments function.  In other words, the  elements
> of the name array will be passed to compadd when executing an action.
> 
> Can I copy this paragraph into the _alternative section? Possibly
> modifying for it not having to be the first option.

Sounds sensible.

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


      reply	other threads:[~2011-05-14 18:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14  1:25 Mikael Magnusson
2011-05-14 18:02 ` Peter Stephenson [this message]

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=20110514190229.6614819e@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /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).