From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4211 invoked by alias); 29 Jul 2014 07:43:54 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18996 Received: (qmail 2909 invoked from network); 29 Jul 2014 07:43:50 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1406619469; bh=y9OqYsd3v9OmPxpU8VrHeJVZgcbTn4tHdI/41QQiWNw=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Content-Transfer-Encoding:Date:Message-ID; b=KvxkDpP2xaGAOCROdAC0cRTfNEMTOfrnCurtN6I3I1PJ6xp67Bc31MS1vfzcbM5EnG+zK9LFUZHB7p1Lgga3/I66O+sjGhu0uuEYcx2lFNngVO9CvhWXsaEg/iVQ4hy++m9uduxmbwH8ecuk7YrBHtmgOgN7TflWpxzijpOBZzs= X-Yahoo-Newman-Id: 368503.17978.bm@smtp124.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 0GH7CTcVM1ma1Yl_g3peBpY6ZyzvpDH.c6TuiGui63swY0j h2hvXX2pzjG_vHwGd7ywinLXcggozvV1NhFljbTKr3B9k9tEDlX7fLA9HVRG zHKiZQEhdtk7EjKiT4kWL7CMQnyM.EppCsBBQQGp0R8OFU5YFC1LwczaKewB m0soJQNkqfJ23sSqAx0XPG9FJVh82tLbVCpg8143iqiQ47BJN8jRFBF2g_Up PptGUzdekf2FcIezOTOSLbRK54mL_nx5BglqFErvqLkKsi.7zFAUxe9dQuC. K3iA1sNNEjYM8BkvOgifQdlJZMHxIA96i610kzCabnTK5U14BYF8MvuCxpS5 J_KD.OgePwffqz66x7E.1MnU9dOqMErMxTkc3vij3XNBuwnleFMwp57UOg00 fQbthHUpE9pD2i9h3e0GlOnRpThIz7VRxx7oIvReFxAxyZAi89ZKc_5W0M5w 7p1HugiigqYSBNqJwSgEo.Z8Wd.60.a3_49_RFqoM8zWed0LqkVqhDZxRmf3 q1uZnP6TUYmTWLD9oCGpyzxdWqgWO9eQ- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <20140728211247.09469e0d@pws-pc.ntlworld.com> From: Oliver Kiddle References: <20140728211247.09469e0d@pws-pc.ntlworld.com> To: zsh-users@zsh.org Subject: Re: completion: _normal after argument MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <27087.1406619468.1@thecus.kiddle.eu> Content-Transfer-Encoding: 8bit Date: Tue, 29 Jul 2014 09:37:48 +0200 Message-ID: <27088.1406619468@thecus.kiddle.eu> Peter Stephenson wrote: > Supposedly you don't even need to do that, however: > *:::message:action > executed or evaluated. With three colons before the mes‐ > sage they are modified to refer only to the normal argu‐ > ments covered by this description. The three colon form should be right in this case. Shouldn't even need a state: '*:::command:_normal' should work. > I have a feeling I've had trouble with that in the past though (and, > obviously, no one in their senses would try to understand _arguments). Most of the troubles come when you're trying to call _arguments again. Message 32848 on zsh-workers is also related. It can be useful to use a small function to print $CURRENT and $words on a different tty to understand things, and remember that _arguments expects words to start with a command name. Oliver