From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29282 invoked by alias); 31 Aug 2015 07:56: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: 36344 Received: (qmail 6551 invoked from network); 31 Aug 2015 07:56:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=zx0yy141L3loJ9lYfwO0RLSY5Jy6UNnGtBPqTDZLgKw=; b=YdkDWiuG8H1x8Aru7em0PO9C9TttkLqR3ft5Fx2EgipCkxoFhEMXYywyVnXlkRXT19 TppyJuPmmG+vUifVydkMGb9SR2hEcGOLAV0xC7QK12GMPLoyabX2UNIrSoibAobD4pyi hj+n6KNHsot/f9R+jO214MQixgi0N10Pv7Wb1hwQxcfE8CueI6UhEa56YL5fxvVTrfnD cD96jAg1rbj3t5KP9rLcEXDg9YJp0Rsw4q+7CEEZXHoLnwQZ6nu26dp7Kc0xguI+t2xw uC/9D9eHUn7Euz2OQBAhAYgV7E787lQrE7MuMcYLQx9b1Gqv/5kMgxr/k97axttnzvz9 YGgA== MIME-Version: 1.0 X-Received: by 10.55.197.151 with SMTP id k23mr7164996qkl.13.1441007787351; Mon, 31 Aug 2015 00:56:27 -0700 (PDT) In-Reply-To: <1441007642-12365-1-git-send-email-mikachu@gmail.com> References: <101231002820.ZM7583@torch.brasslantern.com> <1441007642-12365-1-git-send-email-mikachu@gmail.com> Date: Mon, 31 Aug 2015 09:56:27 +0200 Message-ID: Subject: Re: PATCH: Implement zle -P From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Aug 31, 2015 at 9:54 AM, Mikael Magnusson wrote= : > This lets you say > % zle -P mywidget prototypewidget myfunction > and it will work like zle -N mywidget myfunction except it will behave > like prototypewidget in Various Ways=E2=84=A2. > > --- > > I haven't tested this much (for completion functions, not at all) yet, > but it works for the case in the current thread, see example at the > bottom. Does it look overall sane? I'm not very sure on which/how/where > all these flags are checked and set. The final argument should probably > be optional and default to the first, like for zle -N, but zle -C doesn't > seem to do that, and that's the code I mostly copied. > > I don't see any reason to change zle -N to call into zle -P internally th= ough. Here's the original thread, by the way. http://www.zsh.org/mla/workers/2010/msg01000.html --=20 Mikael Magnusson