From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24868 invoked by alias); 30 Aug 2010 18:59:37 -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: 28216 Received: (qmail 26953 invoked from network); 30 Aug 2010 18:59:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=V3H9Y1wJEZiswCIMyU3NO0LiNnS7tQCOYbeok0gfHl0=; b=usSrgDaOigxApMJx3u8PsUL78HV3IfP9YK8+xXBFJuQ/RPL0boujeqlhcU+JD7eK6V IAVNgr88BKxrU2nTFCZSTybnhNQEGQvA7QCyTj7Cx6yRTiYJcFiutThDvGTFPeme5p8W LK51+2u+YA/hwJWvIsNq22FAC+crBewFRH5eI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=bYx9I3UUuq660EzrZF/LXLsdj6bFP1yzYrXNuX8/bYLTK+etLgm0zSvlkcgS9eeKd5 AEjapret9b4duIkKqpAm3i8n5ncy3p1HgK3ClU3CNOmfrmGwBrvgsAbj8Z6YPoa6H/iJ YdC2tBZPR54uUO7OZEOOtvww8/8RaGXoqwUgE= MIME-Version: 1.0 Sender: nikolai.weibull@gmail.com In-Reply-To: <100830094359.ZM7722@torch.brasslantern.com> References: <1282393263-16767-1-git-send-email-aaron@schrab.com> <100830094359.ZM7722@torch.brasslantern.com> Date: Mon, 30 Aug 2010 20:59:09 +0200 X-Google-Sender-Auth: P1kg4X289NNKd_FkCi8XbaOedY8 Message-ID: Subject: Re: [PATCH] _git: Add completion for help subcommand From: Nikolai Weibull To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Aug 30, 2010 at 18:43, Bart Schaefer wr= ote: > On Aug 26, =C2=A09:55am, Nikolai Weibull wrote: > } Perhaps. The common pattern I saw when I began writing completion > } functions was > } > } ( =C2=A0 =C2=A0--b --c)--a > } (--a =C2=A0 =C2=A0 --c)--b > } (--a --b =C2=A0 =C2=A0)--c > Nikolai, I think you're missing the point of the abc example you quoted. > > In that example, every set inside the parens is different, and the writer > of the function chose to lay them out so that it was obvious where the > differences were. That had not alluded me. What I never =E2=80=9Cunderstood=E2=80=9D was why= the standard form wasn=E2=80=99t to use a variable in this case. I mean, the difference is that you exclude the current option, which is of course excluded by itself (unless its defined as being able to appear many times).