From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21071 invoked by alias); 12 May 2011 18:29: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: 29252 Received: (qmail 20426 invoked from network); 12 May 2011 18:29:36 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110512112910.ZM14052@torch.brasslantern.com> Date: Thu, 12 May 2011 11:29:08 -0700 In-reply-to: Comments: In reply to Mikael Magnusson "Re: PATCH: Make _xset complete more helpfully" (May 12, 7:40pm) References: <110512101422.ZM13822@torch.brasslantern.com> <110512102212.ZM13868@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers Subject: Re: PATCH: Make _xset complete more helpfully MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On May 12, 7:40pm, Mikael Magnusson wrote: } } Okay, I'll commit that then. So this means passing -o and non-option } arguments is incorrect, as it is quite hard to type the leading - of a } word that starts with a letter? Seems so, yes. } Reading the man page entry for } _describe I get the impression it is supposed to show non-option } arguments only as long as you don't type a - Well, it says If the option `-o' appears before the first argument, the matches added will be treated as names of command options ... So even if you add something that doesn't have a leading -, it's treated as if it was supposed to have a leading -. I guess you're supposed to separate the option arguments from the non-option ones and use _alternative so they have different tags. --