From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2091 invoked from network); 25 Feb 2009 04:40:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Feb 2009 04:40:25 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 72797 invoked from network); 25 Feb 2009 04:40:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Feb 2009 04:40:21 -0000 Received: (qmail 26714 invoked by alias); 25 Feb 2009 04:40:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26599 Received: (qmail 26705 invoked from network); 25 Feb 2009 04:40:15 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Feb 2009 04:40:15 -0000 Received: from vms173017pub.verizon.net (vms173017pub.verizon.net [206.46.173.17]) by bifrost.dotsrc.org (Postfix) with ESMTP id 7E9FF8059055 for ; Wed, 25 Feb 2009 05:40:00 +0100 (CET) Received: from torch.brasslantern.com ([173.67.122.60]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KFL007IAUA3AKHW@vms173017.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 24 Feb 2009 22:39:40 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n1P4dcX6008366 for ; Tue, 24 Feb 2009 20:39:39 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n1P4dc3p008365 for zsh-workers@sunsite.dk; Tue, 24 Feb 2009 20:39:38 -0800 From: Bart Schaefer Message-id: <090224203938.ZM8364@torch.brasslantern.com> Date: Tue, 24 Feb 2009 20:39:38 -0800 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@sunsite.dk Subject: Glitch in _zle completion function MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/9043/Wed Feb 25 04:31:16 2009 on bifrost X-Virus-Status: Clean schaefer<501> zle blather _zle:shift:69: shift count must be <= $# _zle:shift:70: shift count must be <= $# _zle:shift:69: shift count must be <= $# _zle:shift:70: shift count must be <= $# _zle:shift:69: shift count must be <= $# _zle:shift:70: shift count must be <= $# _zle:shift:69: shift count must be <= $# _zle:shift:70: shift count must be <= $# schaefer<501> zle blather Completing widget arguments (the shell printed a newline after all those errors, redrew the prompt, and then displayed "Completing widget arguments" per my format style, all from a single tab press). What's happening is that we call _arguments to set $state, then go into the "while (( $#state )): do" loop, inside which _arguments is called a second time, which clears $state and $context so that the pair of shifts at lines 69-70 subsequently fail.