From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15998 invoked by alias); 11 Sep 2011 15:05:03 -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: 29763 Received: (qmail 10323 invoked from network); 11 Sep 2011 15:04:51 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=57Aoc74y98HG9b2dSfr+kp6s1FSZqcT5P91dxN7gF8A=; b=taFuRI74GLTiYz/rXil1diA+1F230RZ4c8V8ZMDbZWzwiFWlkh8ax9m305VxWSW/7I DLfXIvWamN34C3cyds8vBPEKVbIjOCUUs8pnglLchOqO7qva4+jVOcT/M374evBY5eLR elWDKrsZ2DdXWztihYkfmdlyhrsp/pUj9UCQQ= MIME-Version: 1.0 Date: Sun, 11 Sep 2011 17:04:45 +0200 Message-ID: Subject: using the description from _arguments foo:description:->state From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 Hi, When you do something like this (from _zle) "($opts)-A[define widget alias]:old widget:->widget :new widget:->widget" \ it ends up not showing those helpful 'old widget' and 'new widget' because ->widget does this, _wanted -C "$context[1]" widgets expl widget compadd -k widgets && ret=0 so it just shows "widget" as the description. Is there any way to get that description from the $state handler and pass it on to compadd? (I'm a bit afraid to open up _arguments and see if it's passed at all). -- Mikael Magnusson