From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1903 invoked by alias); 25 Jul 2015 07:54:22 -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: 35900 Received: (qmail 28366 invoked from network); 25 Jul 2015 07:54:18 -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,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1437810541; bh=qFHPBQu44c1QfJCO3hOQIJV041Z13gV5JA2mmy6dda8=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=JeJc6cMKhCP3KlH7xiEp1i2eao+xiyukG8tuDXvgKQ7WgjHgWQdoXPlN1bU5+YQRy/6GeQ7S4psJNuMSm0U3QYQygNuS/Aq1vfVL79DP4rXH/BMPSTyQADGjNPyB844EXQb1QluxSrL6223QStY6nFYDbbJuuP4bWDP+jap7T0VHcJiN3IThgFMVog/Oh6NU7pzG/jUfIV3hHXQOeJFnqD0flBFkNl861/vJuEfZAc3RjUz4viLq+moepTUE4zB8W/SJZnioss5qLa0Grb92dGeqZ9vVzq+AoXwtXXp9MsTaXV9ISyct3xhTlQcCVcFoZg3KbpVVBbhLjJDIDM72AA== X-Yahoo-Newman-Id: 534982.16881.bm@smtp121.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: TKGBVh4VM1kIpoX8iqSdcKEIqhLgDQBqMxk59cD4TLvUro9 xXwUSsYmCH8CGzBG3.ty.74AbAv_y9lj6jqltFcZ8aJE6Y_wJK7FIDP5NpEu q0HsqhX4Q.5YnM0r2Iy6UHyQk_qmrSlFgqIzMw0wTPAPn612Pt8TKqLj0HTI d7q6Xm0dDkliCiDcoslKkLeJOFkdL.4jyl6_D94AVIEmplB4Rm1DHGnJX0ZY CpV2gqZ3H.uxi.auLAeEkOl6XltcKtZtwvcQtRBn7rd964HGJExvQHZgJxnM p.aO2k9KBDfKTvr1St5wQvqiuBgpX3C6r75gove3KpdIRFaV3ObvQwQEdNwd Wcx3UTMUC_BdUHjSWhhCjTn063qsZv04_7JNmusDSA0srKnfNojcyGwS2Mtg k43fdKio9mVisDgGJyVZ2eJr1G0O.YfOv1QVAL47_f4aVpDX8vjrGjfgAn3S mkvtXrz.kjh1UkUaarspPs6eclescHeVjuqmciS7Fi1SzRNeDJhIb.9Xf67U RM1sMS.I17b2TOzd82P7nhJ8af3x5iw-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <150724161357.ZM20924@torch.brasslantern.com> From: Oliver Kiddle References: <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> <485.1437632598@thecus.kiddle.eu> <150723220642.ZM18235@torch.brasslantern.com> <150723222152.ZM18547@torch.brasslantern.com> <10400.1437776520@thecus.kiddle.eu> <150724161357.ZM20924@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: PATCH: highlight pasted text MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12040.1437810540.1@thecus.kiddle.eu> Date: Sat, 25 Jul 2015 09:49:00 +0200 Message-ID: <12041.1437810540@thecus.kiddle.eu> Bart wrote: > } > } zle yank > } > } zle -R > } > } zle read-command && zle $REPLY > } > } That might want a split-undo in the middle there. > Before or after read-command? Shouldn't matter since read-command neither inserts or deletes text nor changes histline. It would need to be after the 'zle yank' and before the 'zle $REPLY'. So in practical terms, you'd put it before because of the &&. > Upon further thought, it might actually be preferable to do > > zle -U "$KEYS" > > instead of "zle $REPLY". Yes, I think that is preferable. You might want zle -U - "$KEYS" just in case the next key is -, however. Oliver