From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9020 invoked by alias); 5 Feb 2014 14:23:22 -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: 32352 Received: (qmail 22281 invoked from network); 5 Feb 2014 14:23:07 -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: cbfec7f5-b7fc96d000004885-35-52f249478574 Date: Wed, 05 Feb 2014 14:23:03 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Tests of interrupting completion, and completion_nostat_dirs Message-id: <20140205142303.400fe22b@pwslap01u.europe.root.pri> In-reply-to: <874n4dpss0.fsf@lwm.klanderman.net> 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> <20140130093057.6e04fa53@pwslap01u.europe.root.pri> <140130082206.ZM23682@torch.brasslantern.com> <874n4g1blj.fsf@lwm.klanderman.net> <140204212859.ZM21837@torch.brasslantern.com> <874n4dpss0.fsf@lwm.klanderman.net> 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/4VV13z09BBqeeGlocbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujN4PsQVv2Su6TvUwNjBuYuti5OSQEDCRuHTvFSOELSZx4d56 oDgXh5DAUkaJOz2zGSGc5UwS25cuZgKpYhFQlehc9wzMZhMwlJi6aTZYt4iAuMTZtedZuhg5 OIQFPCXmzCkACfMK2Ev8vPgVrIRTwECifdpeqAVtrBL/P/5lBUnwC+hLXP37iQniCnuJmVfO MEI0C0r8mHyPBcRmFtCS2LytiRXClpfYvOYt8wRGgVlIymYhKZuFpGwBI/MqRtHU0uSC4qT0 XCO94sTc4tK8dL3k/NxNjJAQ/LqDcekxq0OMAhyMSjy8BsIfg4RYE8uKK3MPMUpwMCuJ8B51 /xQkxJuSWFmVWpQfX1Sak1p8iJGJg1OqgXFiftcn3Yhly+bEHHpWv+FLrqHVeWthLufslm+v zfYfWr/B+gDn+V8um2oe9+rs07K//KBQ7GGR0XS1zedkma5wXOp/7fCz6NDHkiv869QD5t3R Fbfy1fp8z/74ZSal86FCtUce/g+fmdK9/I6T/M9pql+P+56eG/g5I2bm7c1rrDZ+UJYotxdW YinOSDTUYi4qTgQAk+f55h8CAAA= On Wed, 05 Feb 2014 08:56:31 -0500 Greg Klanderman wrote: > I'll wait to hear from Peter before doing anything.. Looks like the right answer is to add the parameter within complete.c. As it's an array, it's going to have to go separately into the comprparams list (since we can't have arrays inside hashes at the moment), but that means you can manipulate it from the shell just as before (and the semantics for dealing with it internally are exactly what you've got, except it's only visible in the completion functions because you've added it to a different parameter structure). Then _main_complete (or anything further down that knows when the value is needed, but _main_complete is fine) can retrieve an appropriately named style directly into the array, which is a single line change. So I think this is all straightforward. This then looks like other completion configuration --- only the styles are visible outside the completion system itself. pws