From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25612 invoked by alias); 1 Nov 2010 07:02:30 -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: 28383 Received: (qmail 22634 invoked from network); 1 Nov 2010 07:02:19 -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: <101101000158.ZM32338@torch.brasslantern.com> Date: Mon, 01 Nov 2010 00:01:58 -0700 In-reply-to: <20101031215450.06b7ed7b@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: zle_line_init_functions (Re: accept-line-and-down-history and push-input)" (Oct 31, 9:54pm) References: <101026075546.ZM28500@torch.brasslantern.com> <20101026161947.19279c58@pwslap01u.europe.root.pri> <101026220102.ZM29774@torch.brasslantern.com> <20101027102216.16719058@pwslap01u.europe.root.pri> <101027084031.ZM31108@torch.brasslantern.com> <20101031215450.06b7ed7b@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: zle_line_init_functions (Re: accept-line-and-down-history and push-input) MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 31, 9:54pm, Peter Stephenson wrote: } } > I'd amend to suggest a second nameless widget that can't be } > replaced by "zle -N" whose purpose is to walk the array, following } > the structure of your patch in user/15493 more closely. } } Alas, it still doesn't work. Because the widget is built-in, there's } no point at which the zle parameters get added --- the hierarchy is } builtin widget -> ordinary shell function Ah, and hmm. So there's no clever way to pull off the equivalent of (pseudo-code): zle -N hook-runner (){ local f; for f in ... } I.e., take an anonymous function that does what you want and make a user-defined widget out of it?