From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10638 invoked by alias); 21 Oct 2016 11:13:32 -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: 39699 Received: (qmail 10876 invoked from network); 21 Oct 2016 11:13:32 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-mqugw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.100.2):SA:0(-0.3/5.0):. Processed in 0.359699 secs); 21 Oct 2016 11:13:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf01.biglobe.ne.jp designates 133.208.100.2 as permitted sender) X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: _arguments: normal arg spec with empty action From: "Jun T." In-Reply-To: <14826.1477031511@hydra.kiddle.eu> Date: Fri, 21 Oct 2016 20:12:51 +0900 Content-Transfer-Encoding: 7bit Message-Id: References: <81D02BE7-7F8E-4E46-B7A9-95A5C9D8DDF7@kba.biglobe.ne.jp> <14826.1477031511@hydra.kiddle.eu> To: "zsh-workers@zsh.org" X-Mailer: Apple Mail (2.1510) X-Biglobe-Spnum: 59151 On 2016/10/21, at 15:31, Oliver Kiddle wrote: > > I can't reproduce this so perhaps there's something setup related. > Does pressing tab a third time work? For me it happens even with 'zsh -f': $ zsh -f % autoload -Uz compinit % compinit % awk - The first lists the options, but hitting again (or again and again ...) does not complete options. >> The following patch fixes the problem, but is this the best way to go? >> + '1: : _message "program text"' \ > > Does _guard work? For a heading without matches, _message -e should be > used but that roughly what _arguments is doing. Thanks, the following seems to work: '1: : _guard "^-*" "program text"' and I think this is better, because with the style % zstyle ':completion:*:descriptions' format '%d' and if _message is used, then % awk - will print both "program text" and "options", but only "options" is printed if _guard is used. Jun