From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2458 invoked by alias); 13 Dec 2011 21:27:46 -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: 30022 Received: (qmail 27829 invoked from network); 13 Dec 2011 21:27:43 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.41 is neither permitted nor denied by SPF record at ntlworld.com) X-ProxyUser-IP: 86.6.29.42 Date: Tue, 13 Dec 2011 21:27:32 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: PATCH: _globquals: Say what the digit is when completing time qualifiers, add d Message-ID: <20111213212732.2a7e92d0@pws-pc.ntlworld.com> In-Reply-To: <1323804206-875-1-git-send-email-mikachu@gmail.com> References: <1323547357-12444-1-git-send-email-mikachu@gmail.com> <1323804206-875-1-git-send-email-mikachu@gmail.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 13 Dec 2011 20:23:26 +0100 Mikael Magnusson wrote: > Added the d flag, and moved locals to top to get rid of anon function. > It seems the scoping conflicts with compset -P somehow. There are hooks to restore state after function calls in the completion system so you can use a different function to complete something else without too much work. Anonymous functions have the same effect as any other. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/