zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: joe M <joe9mail@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: zsh completer _approximate completer
Date: Thu, 28 Feb 2013 10:30:34 +0100	[thread overview]
Message-ID: <28025.1362043834@thecus.kiddle.eu> (raw)
In-Reply-To: <CAHjjW14LvYGTHgOHW+DuDpz9LwcRiQiKhafZgBb46UJP6wEg4Q@mail.gmail.com>

Sorry, ignore my last e-mail as I was wrong, again.

It seems that in the course of completion, the style is looked
up three times:

+_tags:31> zstyle -a :completion::complete:cd:: group-order order
+_tags:31> zstyle -a :completion::approximate::: group-order order
+_tags:31> zstyle -a :completion::approximate-1:cd:: group-order order

The first one would match ':completion:*' and so the group-order from
that style applies regardless of no matches being generated for that
context. The later group-orders are not completely ignored and it seems
they would be meaningful if they concerned a different set of groups.
I'm assuming they get ignored because they contradict the previous group
ordering.

This makes sense when you consider that a group-order is something that
can't be applied for specific matches: there is one ordering for all
matches. Perhaps a group-order from a tag loop where no matches are
actually generated should be thrown away.

So in conclusion, don't set group-order with a general style.

Oliver


  parent reply	other threads:[~2013-02-28  9:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28  6:27 joe M
2013-02-28  6:42 ` joe M
2013-02-28  9:00   ` Oliver Kiddle
2013-02-28  9:30   ` Oliver Kiddle [this message]
2013-03-01 19:30     ` joe M
2013-03-01 19:38       ` joe M
2013-03-01 20:30         ` joe M
2013-03-01 23:40           ` Oliver Kiddle
2013-03-02  4:13             ` joe M

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=28025.1362043834@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=joe9mail@gmail.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).