zsh-workers
 help / color / mirror / code / Atom feed
From: Greg Klanderman <gak@klanderman.net>
To: zsh-workers@zsh.org
Subject: Re: minor niggle with svn completion of sub-commands
Date: Mon, 09 Nov 2009 16:46:27 -0500	[thread overview]
Message-ID: <m3fx8nmkwc.fsf@klanderman.net> (raw)
In-Reply-To: <19192.17676.966894.118536@gargle.gargle.HOWL> (Greg Klanderman's message of "Mon, 9 Nov 2009 11:36:28 -0500")

>>>>> On November 9, 2009 Greg Klanderman <gak@klanderman.net> wrote:

> I don't really understand _arguments too well, but it looks like the
> use in _subversion is attempting to complete commands in the first
> position.. why doesn't that always work?

Hmmm does this look like a bug in _arguments?  _svn is calling
_arguments like this:

  _arguments -C \
    '(-)--help[print help information]' \
    '(- *)--version[print client version information]' \
    '1: :->cmds' \
    '*:: :->args' && ret=0

and state is returned set to 'args' when <tab> is pressed for
completion in the position indicated:

% svn lo<tab> foo

>From reading the documentation on _arguments, I would think the
'1: :->cmds' spec would match, since we are in fact completing
the first argument, even though there are subsequent arguments.

thanks,
Greg


  reply	other threads:[~2009-11-09 21:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 16:36 Greg Klanderman
2009-11-09 21:46 ` Greg Klanderman [this message]
2009-11-12 17:53   ` Greg Klanderman
2009-11-12 19:25     ` Peter Stephenson
2009-11-14 20:05       ` Greg Klanderman
2009-11-15  7:47         ` Greg Klanderman
2009-11-16  0:17           ` Bart Schaefer
2009-11-16 19:45             ` Greg Klanderman
2009-11-17  4:01               ` Bart Schaefer
2009-11-17 15:55                 ` comparguments (was Re: minor niggle with svn completion of sub-commands) Bart Schaefer
2009-12-06 22:11                   ` Greg Klanderman

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=m3fx8nmkwc.fsf@klanderman.net \
    --to=gak@klanderman.net \
    --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).