From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21406 invoked by alias); 9 Oct 2011 17:52:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29819 Received: (qmail 6103 invoked from network); 9 Oct 2011 17:52:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/lVweSnzwg2oZFnO4xLVgGt3Hhj9jsKGQCroRWSKC2c=; b=yDIZ0MWLZa8+apFwahS/vVjwZV/lp4LY9BF/L/wN8N6WQ5ZjKak0E1rtpSu9iFlFD3 TIruh3tYw/KQxW85BCF+iVrQShyAlIY5hiPnJXlPMYj9rYMLU71WQc+0cmyClscd8oXW kZv0yFMX49wQy0JQICFC10cyelw71QShLHpQI= MIME-Version: 1.0 In-Reply-To: <20111009184032.06526a58@pws-pc.ntlworld.com> References: <20111009184032.06526a58@pws-pc.ntlworld.com> Date: Sun, 9 Oct 2011 19:52:34 +0200 Message-ID: Subject: Re: Disable special-dirs for cdpath From: Mikael Magnusson To: Peter Stephenson Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On 9 October 2011 19:40, Peter Stephenson wrote: > On Sat, 8 Oct 2011 12:58:26 +0200 > Mikael Magnusson 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