From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2236 invoked by alias); 30 Jan 2014 09:41:09 -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: 32323 Received: (qmail 10098 invoked from network); 30 Jan 2014 09:41:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f796d000005a13-4a-52ea1bd137e1 Date: Thu, 30 Jan 2014 09:30:57 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Tests of interrupting completion, and completion_nostat_dirs Message-id: <20140130093057.6e04fa53@pwslap01u.europe.root.pri> In-reply-to: <140129181206.ZM22813@torch.brasslantern.com> References: <140122000435.ZM1516@torch.brasslantern.com> <140123171659.ZM19422@torch.brasslantern.com> <87iot91lp8.fsf@lwm.klanderman.net> <140125124934.ZM23767@torch.brasslantern.com> <87eh3q3g63.fsf@lwm.klanderman.net> <140129181206.ZM22813@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e/4Vd2L0q+CDG4s1LQ42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGVOPPmct6OWqmLNhEWsD4xSOLkZODgkBE4neh1vYIGwxiQv3 1gPZXBxCAksZJU5Pe8EO4Sxnkph76BETSBWLgKrE3BtHwTrYBAwlpm6azQhiiwiIS5xde56l i5GDQ1jAU2LOnAKQMK+AvcTXGR0sIDangJXEzV8fwcqFBJYwS/w5LQti8wvoS1z9+4kJ4gh7 iZlXzjBC9ApK/Jh8D6yXWUBLYvO2JlYIW15i85q3zBMYBWYhKZuFpGwWkrIFjMyrGEVTS5ML ipPScw31ihNzi0vz0vWS83M3MUJC8MsOxsXHrA4xCnAwKvHwrpj8MkiINbGsuDL3EKMEB7OS CO8x0VdBQrwpiZVVqUX58UWlOanFhxiZODilGhit/myo5/kjYxO2Qf30DNeAvCkrbPXMDzFu ftbhZpJ02cntH+fqipVexzJ+5sx5f6Z1f5QqR820qij+SSGJafmfw/K0HBKOum3TDbS5V/1h RWvHXdGNk0teTU94Paf6QvdLdrV5LNlHe8//C9fI3XnrSsdqkY59tnMD6t/sOHBMzPvGscrt DH+UWIozEg21mIuKEwGOj8u7HwIAAA== On Wed, 29 Jan 2014 18:12:06 -0800 Bart Schaefer wrote: > } I'll attach the patch below, if you'd be willing to incorporate > } something like it let me know, I'd certainly prefer to have it part of > } zsh. I would add documentation of course. > > Hmm, to include this I'd probably want completion_nostat_dirs to be an > autoloaded parameter in the zsh/complete module or something like that. > It doesn't have any of those right now (the magic parameters that are > only valid inside completion widgets are a somewhat different beast) but > there's no reason it couldn't. This has traditionally been done using something that's only seen by completion that gets passed in from above. It could, for example, be something in compstate set at the top level of _main_complete, but there are other mechanisms: the menu completion library uses its own parameters that are set by styles, and sometimes the effect of styles get passed into builtins which probably doesn't fit here. A style would certainly fit better with the rest of the completion system. This is different from ZLE which doesn't use styles so gets configured by straight parameters --- that's not ideal; it would be better to use some form of namespace if we could. pws