From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28166 invoked by alias); 27 Oct 2016 13:01:12 -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: 22036 Received: (qmail 17001 invoked from network); 27 Oct 2016 13:01:12 -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.139249 secs); 27 Oct 2016 13:01:12 -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=28dAuXNlGxCejN3 QxpUQUUDUx8s=; b=mcf6DuumtX5mouLKCXQkFv/fJuy08vtubRMuoMHiJ69q5V7 DTjyvbkPBSZHmS/tt9ELjA3fP1yZFCowp2ZG2K2bP8qpGLgn3Pt0rhEEVGo5jP/M wwrS94YA9q6DuXmk8V9IXQpGmE95oY+Cu6zLsaXq9Yze9FHuVuBqECq+kpdg= 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=28dAuXNlGxCejN 3QxpUQUUDUx8s=; b=FnKEEzPhmfWX+bhsdJRmcM+B3GWtvCFsfzwnCYVloJocVM Bf5K0DCgMi6QVcINKmUNHYthndJR4FLbn5A2T4WFOyCoM2n99vUH/k17npnB7cET iy22X2umAhFymfAs7eAtSJmrxZfW8RTi8sj2+uq+pwfjmEJQUc/HfZKi8jFJI= X-ME-Sender: X-Sasl-enc: mndYR4Z1X1JavkcOGW/CFQw1tCIB/YRKS1fmMBP+3oHc 1477573269 Date: Thu, 27 Oct 2016 12:59:07 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER Message-ID: <20161027125907.GA20586@fujitsu.shahaf.local2> References: <161025091249.ZM7232@torch.brasslantern.com> <161026090133.ZM11120@torch.brasslantern.com> <161026165138.ZM12130__24043.0697137073$1477525984$gmane$org@torch.brasslantern.com> <20161027004500.GA12759__18780.7835791775$1477529337$gmane$org@fujitsu.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20161027004500.GA12759__18780.7835791775$1477529337$gmane$org@fujitsu.shahaf.local2> User-Agent: Mutt/1.5.23 (2014-03-12) Daniel Shahaf wrote on Thu, Oct 27, 2016 at 00:45:00 +0000: > 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. Alternative patch after feedback by Bart. diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 726e973..e82c12d 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -2176,10 +2176,13 @@ 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. +The pasted text is inserted to the buffer and placed in the cutbuffer. 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. + +When called from a widget function as `tt(bracketed-paste) var(name)`, the +pasted text is assigned to the variable var(name) and no other processing is +done. See also the tt(zle_bracketed_paste) parameter. )