From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26462 invoked by alias); 9 Oct 2011 17:47:27 -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: 29818 Received: (qmail 27215 invoked from network); 9 Oct 2011 17:47:25 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.171 is neither permitted nor denied by SPF record at ntlworld.com) X-ProxyUser-IP: 86.6.29.42 Date: Sun, 9 Oct 2011 18:40:32 +0100 From: Peter Stephenson To: zsh workers Subject: Re: Disable special-dirs for cdpath Message-ID: <20111009184032.06526a58@pws-pc.ntlworld.com> In-Reply-To: References: X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/