From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 562 invoked by alias); 1 Sep 2015 06:23:18 -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: 36359 Received: (qmail 27429 invoked from network); 1 Sep 2015 06:23:17 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=HdVAqzFx96mSzhPw0IPu8cpxAt40NMskwaFY6J15td0=; b=g2l2N7/UFAB2ZSQ3+laRYa/XyW6jwxMdCpVTdaMFgs9iyJDSvFG8LGQovpJTjwOkY4 xIbeEW0vXTcGM2X+0lNOEhROQEpdkLc0ZjO1CfR4O4mOe7IbhXDoBoDXUSmQmzNOQgLn VK+/yUmWquTShNnKTM9us9X5IBiHXqhiFrbRKxcndwuLYgDcvtzseOyqLTRLKhTtkzMH Vh8E2Qwkf7wZRLwzqJD5GAIfX+pqjx5MYKre67iGfRxam3cL6KolTa+x9fdxkUny8I81 3I1R3p33RyNf0M6H7L8wWRmBcikWWba1aJ+nYQcrUcyJvU3ph3qcjyd+Ih/meOC+o5UM fqPw== X-Gm-Message-State: ALoCoQl78ggDRQjyPb0I/GGgu8xljgW+tdOGQ2LYqx/WW7fX6a/fifH3mSwyWzYI+nGIMwdSLRiI X-Received: by 10.202.213.70 with SMTP id m67mr4098336oig.26.1441088594978; Mon, 31 Aug 2015 23:23:14 -0700 (PDT) From: Bart Schaefer Message-Id: <150831232311.ZM921@torch.brasslantern.com> Date: Mon, 31 Aug 2015 23:23:11 -0700 In-Reply-To: <20150831181101.32f43e65@ntlworld.com> Comments: In reply to Peter Stephenson "Re: PATCH: Implement zle -P" (Aug 31, 6:11pm) References: <101231002820.ZM7583@torch.brasslantern.com> <1441007642-12365-1-git-send-email-mikachu@gmail.com> <20150831181101.32f43e65@ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: PATCH: Implement zle -P MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 31, 6:11pm, Peter Stephenson wrote: } Subject: Re: PATCH: Implement zle -P } } On Mon, 31 Aug 2015 09:54:02 +0200 } 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 Ways0x2122. } } It's not entirely clear what this does without documentation, but as the } flags are a bit obcsure anyway, it might not be all that clear how to } document it, either. I presume this is exactly like "zle -C name widget function" except that "widget" doesn't have to be a completion widget and "function" defaults to being the same as "name". Presumably the idea is for wrapper widgets, e.g., something like this: zle -P bracketed-paste-magic bracketed-paste which would then make b-p-magic behave exactly like b-p, and thereby, e.g., eliminate the need for this stuff at the end of the former: # Arrange to display highlighting if necessary if [[ -n ${(M)zle_highlight:#paste:*} ]]; then zle -R zle .read-command && zle -U - $KEYS fi If that's NOT what it accomplishes, then I'm uncertain why it's needed at all.