zsh-workers
 help / color / mirror / code / Atom feed
From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: tag-order problem
Date: 11 May 2002 14:48:00 +0400	[thread overview]
Message-ID: <1021114086.27414.10.camel@localhost.localdomain> (raw)

Just found problem in my _service/_services

_service calls _services to complete list of available services. Because
_services normally completes both init and xinetd, I presumed I could
limit matches by setting tag-order; in this case:

zstyle :completion::complete:service:argument-1: tag-order init -

(meaning - for the first argument of service somplete only tag `init').

It did restrict services set to init only - but it also stopped dead
options completion.

Setting tags to `options init -' does allow options completion - both in
first and second word as well; third and subsequent are completed
normally (after -TAB three times:

{pts/2}% service --debug --full-restart httpd-naat
Completing init services
httpd-naat  syslog-ng


Looking in traces, it seems that

_arguments in _service correctly setups requested tags (that are
argument-1 and options) and does not use the above tag-order style at
all

first call to _tags in tags loop is O.K.; next `_requested argument-1'
also returns true

next call to _tags is still true

but call to `_requested options' fails.

If no tag-order is defined it works correctly but then both sets are
listed (that I'd like to avoid). 

-andrej





             reply	other threads:[~2002-05-11 10:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-11 10:48 Borsenkow Andrej [this message]
2002-05-13  9:09 ` Sven Wischnowsky
2002-05-14  8:06 ` Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
2000-05-30 14:22 Tanaka Akira
2000-05-30 17:12 ` Bart Schaefer
2000-05-10 16:56 Tanaka Akira

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=1021114086.27414.10.camel@localhost.localdomain \
    --to=andrej.borsenkow@mow.siemens.ru \
    --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).