From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22792 invoked from network); 8 Jun 2009 14:04:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 8 Jun 2009 14:04:30 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 98584 invoked from network); 8 Jun 2009 14:04:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Jun 2009 14:04:18 -0000 Received: (qmail 682 invoked by alias); 8 Jun 2009 14:04:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27044 Received: (qmail 658 invoked from network); 8 Jun 2009 14:04:06 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 8 Jun 2009 14:04:06 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 39C45801E289 for ; Mon, 8 Jun 2009 16:04:02 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly29g.srv.mailcontrol.com (MailControl) with ESMTP id n58E3xHG003657 for ; Mon, 8 Jun 2009 15:04:00 +0100 Received: from news01.csr.com ([10.99.50.25]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Mon, 8 Jun 2009 15:03:58 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id n58E3wg6003513 for ; Mon, 8 Jun 2009 15:03:58 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id n58E3wQT003509 for ; Mon, 8 Jun 2009 15:03:58 +0100 Message-Id: <200906081403.n58E3wQT003509@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: run-help's man arguments In-reply-to: <20090608135410.GA26835@scru.org> References: <2161.1244200252@csr.com> <090605225330.ZM551@torch.brasslantern.com> <200906080852.n588qJaK000472@news01.csr.com> <20090608135410.GA26835@scru.org> Comments: In-reply-to Clint Adams message dated "Mon, 08 Jun 2009 13:54:10 -0000." Date: Mon, 08 Jun 2009 15:03:58 +0100 From: Peter Stephenson X-OriginalArrivalTime: 08 Jun 2009 14:03:58.0771 (UTC) FILETIME=[F7FB0030:01C9E841] X-Scanned-By: MailControl A-09-00-10 (www.mailcontrol.com) on 10.71.0.139 X-Virus-Scanned: ClamAV 0.94.2/9436/Mon Jun 8 02:21:18 2009 on bifrost X-Virus-Status: Clean Clint Adams wrote: > On Mon, Jun 08, 2009 at 09:52:19AM +0100, Peter Stephenson wrote: > > It seems I'm using this widget. > > > > > > local -a line > > > > line=(${(qq)${(z)BUFFER}}) > > zle push-line > > BUFFER="run-help ${line}" > > zle accept-line > > Presumably we can't start doing something like this by default > because of the default alias to man. True, although if it seems useful it can be mentioned in the documentation for the replacement run-help. Based on recent experience, I haven't been finding it *that* useful. With a widget like this, run-help could be made cleverer in this respect by offering to give help for words following coproc, noglob, etc. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070