zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: Disable special-dirs for cdpath
Date: Sun, 9 Oct 2011 19:52:34 +0200	[thread overview]
Message-ID: <CAHYJk3S1ocWrtO5dLOhnChTyieT8v0BEmxh03H_1e8FwZus3Ug@mail.gmail.com> (raw)
In-Reply-To: <20111009184032.06526a58@pws-pc.ntlworld.com>

On 9 October 2011 19:40, Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> 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.

Ah, thanks for looking, and sorry for making you :). I'll just keep my
silly hack for now.

-- 
Mikael Magnusson


      reply	other threads:[~2011-10-09 17:52 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
2011-10-09 17:52   ` Mikael Magnusson [this message]

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=CAHYJk3S1ocWrtO5dLOhnChTyieT8v0BEmxh03H_1e8FwZus3Ug@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=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).