From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29460 invoked by alias); 27 Oct 2016 00:47:08 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22035 Received: (qmail 13265 invoked from network); 27 Oct 2016 00:47:08 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.26):SA:0(0.0/5.0):. Processed in 0.335946 secs); 27 Oct 2016 00:47:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=YwtVi8iWTX4QTZS zl/qQQQvVPRs=; b=0vqbmPwQi1XzcB9oLQdgh1z87XRLw8vbhu3OB6orCFxTMJi uhpqF14dd0RCL5yde5GRN1p14qq2VtyyOabSN53pwZXr5N2L8f4LR25zGNkaTvpQ xx7Ri+EVZeqw8j+UtcEFIDOoDTlC/4QdThgIE1pCvEGxKXxg6HM4V58wAirA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=YwtVi8iWTX4QTZ Szl/qQQQvVPRs=; b=qpGGPKaTryMzekiI9s0ifIvIOuCsHYXaeYgCJG6MyxcocI bW/e7uWfUA79SoHLA3NzjzBmA203f+lp8xRoNfC3s8irUcpKE7/D9OHZ7zYKPEu5 2/jthHg8uZGeb9+zE9Fic7oHEP5EbgT7GaJl8MJsuapj4lLyDuat2x+R2sc5E= X-ME-Sender: X-Sasl-enc: /vCzGpgsQRwVUP0veWmN1nVQ7UnPwNzvJu1nMbe8+6/n 1477529222 Date: Thu, 27 Oct 2016 00:45:00 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER Message-ID: <20161027004500.GA12759@fujitsu.shahaf.local2> References: <161025091249.ZM7232@torch.brasslantern.com> <161026090133.ZM11120@torch.brasslantern.com> <161026165138.ZM12130__24043.0697137073$1477525984$gmane$org@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <161026165138.ZM12130__24043.0697137073$1477525984$gmane$org@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) Bart Schaefer wrote on Wed, Oct 26, 2016 at 16:51:38 -0700: > On Oct 27, 12:12am, lolilolicon wrote: > } This doesn't seem to be documented, so I think it's OK to change it. > > Good point that it should be documented. > The following documents the incumbent killring behaviour, and rearranges text to clarify that a numeric argument is ignored when a positional argument is present. diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 726e973..3fb7f42 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -2176,10 +2176,12 @@ item(tt(bracketed-paste))( This widget is invoked when text is pasted to the terminal emulator. It is not intended to be bound to actual keys but instead to the special sequence generated by the terminal emulator when text is pasted. + +If called from a widget function and a positional argument is given, +it is interpreted as a variable name to which the pasted text is assigned. +Otherwise, the pasted text is inserted to the buffer and added to the kill ring. If a numeric argument is given, shell quoting will be applied to the -pasted text before it is inserted. When called from a widget function, -an argument can be given to specify a variable to which pasted text is -assigned. +pasted text before it is inserted. See also the tt(zle_bracketed_paste) parameter. )