zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: starting completions with =,<,>
Date: Sun, 25 Jul 2004 10:42:38 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0407250838430.7539@toltec.zanshin.com> (raw)
In-Reply-To: <pan.2004.07.25.11.42.39.666502@gmail.com>

On Sun, 25 Jul 2004, chris s wrote:

> Hi, I'm trying to add to the functionality of the emerge completion for
> gentoo linux. For example,
> 
> emerge -p =zsh-4.2.0-r1

Unless you "unsetopt equals" this could potentially be expanded into

emerge -p /usr/local/bin/zsh-4.2.0-r1

(or the like).  That's why there's the "-equals-" completion context.

> I saw in the manpage that _values does not support the equal sign.

Can you quote the bits of the manual that made you think this?

In any event I don't think you want _values.  The _values function is for
words of the form <name><sep><value> where <sep> defaults to "=", e.g.
"foo=bar" (like an assignment).  You can tell it to use a different <sep>,
but in the case of emerge there doesn't appear to be a <name> part.

> '--exact[specify exact version]:*::alt:->exact_ver' 
> 
> This is what I'd rather have look like this:
> 
> '=[specify exact version]:*::alt:->exact_ver' 

The problem here is that you're trying to treat this as an option, when 
what you need to do is treat it as an argument.  The question is whether 
it is a stand-alone argument, or whether it's an argument that must follow 
the -p option?  I haven't been able to dig up any documentation on emerge 
(the only software I can find are a mass-mailing program and the emacs CVS 
interface -- everything else is lost in the Google noise because "emerge" 
is a real word).


  reply	other threads:[~2004-07-25 17:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-25 11:42 chris s
2004-07-25 17:42 ` Bart Schaefer [this message]
2004-07-25 21:39   ` chris s
2004-07-26 13:06     ` chris s
2004-07-26 13:59       ` 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=Pine.LNX.4.61.0407250838430.7539@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --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).