From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9574 invoked from network); 8 Jun 2009 08:52:55 -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 08:52:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 12943 invoked from network); 8 Jun 2009 08:52:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Jun 2009 08:52:43 -0000 Received: (qmail 5568 invoked by alias); 8 Jun 2009 08:52:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27042 Received: (qmail 5550 invoked from network); 8 Jun 2009 08:52:31 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 8 Jun 2009 08:52:31 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 12CB5801E289 for ; Mon, 8 Jun 2009 10:52:24 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly13g.srv.mailcontrol.com (MailControl) with ESMTP id n588qKrD025755 for ; Mon, 8 Jun 2009 09:52:21 +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 09:52:19 +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 n588qJS2000477 for ; Mon, 8 Jun 2009 09:52:19 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id n588qJaK000472 for ; Mon, 8 Jun 2009 09:52:19 +0100 Message-Id: <200906080852.n588qJaK000472@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: <090605225330.ZM551@torch.brasslantern.com> References: <2161.1244200252@csr.com> <090605225330.ZM551@torch.brasslantern.com> Comments: In-reply-to Bart Schaefer message dated "Fri, 05 Jun 2009 22:53:30 -0700." Date: Mon, 08 Jun 2009 09:52:19 +0100 From: Peter Stephenson X-OriginalArrivalTime: 08 Jun 2009 08:52:19.0958 (UTC) FILETIME=[6E9E9160:01C9E816] X-Scanned-By: MailControl A-09-00-10 (www.mailcontrol.com) on 10.71.0.123 X-Virus-Scanned: ClamAV 0.94.2/9436/Mon Jun 8 02:21:18 2009 on bifrost X-Virus-Status: Clean Bart Schaefer wrote: > On Jun 6, 12:52pm, Jun T. wrote: > } Subject: Re: run-help's man arguments > } > } I'm not familiar with zsh internals, but I think ESC-h (in the default > } bindings) is bound to the ZLE widget 'run-help' which calls the > } function "run-help" as "run-help $1". > > You have a point there. PWS, how did you manage to get run-help to > pass the entire locate command line to "man $@:t"? It seems I'm using this widget. local -a line line=(${(qq)${(z)BUFFER}}) zle push-line BUFFER="run-help ${line}" zle accept-line -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070