From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18639 invoked by alias); 30 Dec 2010 22:06:00 -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: 28556 Received: (qmail 12168 invoked from network); 30 Dec 2010 22:05:47 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=0bzqp1cginjArShWrkirnvJ0qVyj8fiNbiJvwdlr1zM=; b=nvgvimJLneC600PI7lMj3sLY4H/p5mNjCzgu2Zau14/Vt9AHct8VLmegbPy7mGb6dG CSO+Wd1NH+Z/XrKPXhBqCQ6QuiIa1eoz5AE4FNGGy7qfHzNAhE9baplE8UPHSXTnOS5S 3c8EhaHDAFl0jm9h8GQjGmW/uTuCVXZJSjyGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=ABG6ebXLSrpoHqyF12cKwOwLF3hoj+T3c0/Jpctuky30HCeVwMrcOjzj8CwJKvHcgH GyJwA/GmRVcPcuSGWbqt6mcNIViu0HqsgNti/30HM7rV1kE1KNUlix9s1SQTd/RqqcNk KcR7z33VGRIbFp3odkqvKYZFeB37iOFiymHEA= MIME-Version: 1.0 Sender: 4wayned@gmail.com Date: Thu, 30 Dec 2010 13:59:27 -0800 X-Google-Sender-Auth: THrLOPt1C2Kv-A95iCCV8GDLVcI Message-ID: Subject: Overriding a yank* widget in zle From: Wayne Davison To: zsh-workers@zsh.org Content-Type: multipart/mixed; boundary=0016e64c3efaa4f9920498a7cc01 --0016e64c3efaa4f9920498a7cc01 Content-Type: multipart/alternative; boundary=0016e64c3efaa4f9820498a7ccff --0016e64c3efaa4f9820498a7ccff Content-Type: text/plain; charset=UTF-8 I'm trying to figure out how to override the zle yank widget without breaking the ability to use yank-pop, and this does not appear to be possible in the current code. A query in early 2005 on the subject went unanswered, so hopefully I didn't miss some simple solution to this. I've coded up a patch that adds the -y option to zle so that I can define a "zle -Ny yank" widget (as well as yank-pop), which marks it as being a ZLE_YANK equivalent. I'm not sure that this is the right solution, so see what you think of the change. ..wayne.. --0016e64c3efaa4f9820498a7ccff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm trying to figure out how to override the zle yank widget without br= eaking the ability to use yank-pop, and this does not appear to be possible= in the current code. =C2=A0A query in early 2005 on the subject went unans= wered, so hopefully I didn't miss some simple solution to this.

I've coded up a patch that adds the -y option to zle so = that I can define a "zle -Ny yank" widget (as well as yank-pop), = which marks it as being a ZLE_YANK equivalent. =C2=A0I'm not sure that = this is the right solution, so see what you think of the change.

..wayne..
--0016e64c3efaa4f9820498a7ccff-- --0016e64c3efaa4f9920498a7cc01--