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: Disable special-dirs for cdpath
Date: Sun, 9 Oct 2011 18:40:32 +0100	[thread overview]
Message-ID: <20111009184032.06526a58@pws-pc.ntlworld.com> (raw)
In-Reply-To: <CAHYJk3Q9QPxR8CYAC1wwgVPVEiL4i9a5MFSzxVdACF1xRC70BA@mail.gmail.com>

On Sat, 8 Oct 2011 12:58:26 +0200
Mikael Magnusson <mikachu@gmail.com> wrote:
> Any other ideas? Is the "real" tag already accessible here in some
> other parameter?

You'd have thought so, wouldn't you?  The completion code is looping
over the tags, it ought to be easy to work out what tag you've got and
use it (or, if it isn't, that you haven't got a tag, so you use a
default one, in this case paths).

However, this quickly turns into "I'm sorry I even thought about
looking" territory.  Buried under the tag handling completion functions,
which are documented but only tell you how the looping works, are the
builtins comptags and comptry within the famously undocumented source
code of zsh/computil, and the published API documentation reads, in
full,

       comptags
       comptry
              These implement the internals of the tags mechanism.

So this looks like another of those things that will have to become
someone's life's passion to investigate, document, and render
maintainable.

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


  reply	other threads:[~2011-10-09 17:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-08 10:58 Mikael Magnusson
2011-10-09 17:40 ` Peter Stephenson [this message]
2011-10-09 17:52   ` Mikael Magnusson

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=20111009184032.06526a58@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).