From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5905 invoked by alias); 12 Sep 2015 15:58:50 -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: 36508 Received: (qmail 8691 invoked from network); 12 Sep 2015 15:58:50 -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=SCSTZ3mHdIF/dNInQpdQixk9sEpj7tt6Xwlx7eo5Ork=; b=jqoSOWiaZW9BQtRpGWxd/dmGnfSHl2AOXBz4r7KVHN1FYaqZxM9bTphsGabRkNGIuQ dWnVRJJfX2z7waNgYPFJrao2O6OjW+LQM0NTCdbK1HjvDVFBonm5uVr5e5yvIREdHbwB vRWbg1awyw9YhuKemqsc2tjhV1QGIBIyJHzK3TPEI1fRrlzmTDopQFw3HTi0njsFN72a M9df5NeNCXv/GKog7Mu+yW3yP5ApmbJ8xH/lUWPGaiodVhR95Q7P4bJGYj1X49m+wy41 QgMpVg7HaKqVuIBFdo2ms4ykGcXf1LR4/P8H+lDafOe9apiBP7kaGJMyh7QFjMxY6b+o lpbg== X-Gm-Message-State: ALoCoQmJA57yhonQ4AyZ43FUlzr9+zrMuYuTnmRjjYqKKhU05JjVgEyTWA8btWtXtuLsMvvJebbF X-Received: by 10.202.194.9 with SMTP id s9mr3661414oif.56.1442073528527; Sat, 12 Sep 2015 08:58:48 -0700 (PDT) From: Bart Schaefer Message-Id: <150912085845.ZM9504@torch.brasslantern.com> Date: Sat, 12 Sep 2015 08:58:45 -0700 In-Reply-To: Comments: In reply to Mikael Magnusson "Re: bracketed paste - chopping trailing newlines" (Sep 12, 2:17am) References: <20150829012452.GE30848@bosko.stateful.de> <150828220057.ZM14497@torch.brasslantern.com> <20150830202530.GF30848@bosko.stateful.de> <150901164827.ZM2480@torch.brasslantern.com> <20150903235936.GH30848@bosko.stateful.de> <20150906095224.GD1895@tarsus.local2> <4397.1441547465@thecus.kiddle.eu> <13644.1441708777@thecus.kiddle.eu> <20150910191143.GG10129@tarsus.local2> <150911160702.ZM8647@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: bracketed paste - chopping trailing newlines MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 12, 2:17am, Mikael Magnusson wrote: } } I personally find it very surprising that pasting would interact with } the region in any way at all, yanking normally doesn't. Yes, I was a little surprised that Oliver implemented it that way, as it doesn't seem to be what Emacs does (well, except possibly Aquamacs on MacOS, which tries to emulate MacOS cmd-c/cmd-v behavior). However, that adds yet another thing to the list of disagreements, so I wasn't going to go there. } > I guess I agree with Oliver about the newline stripping. } } We have at least two options that decide if and how we print a single } newline before drawing the prompt, maybe there is room for some here } as well. Problems with that are (a) for newlines before the prompt, the initial state is outside the editor, but with paste we're inside the editor the whole time so any extra stuff we output (other than highlighting) could be confused with $BUFFER contents; and (b) we're trying to move away from having module-specific setopts in the main shell. Using RPS1 with TRANSIENT_RPROMPT might cover a lot of this, as the prompt would still be there if the line has not been accepted. Unfortunately RPS1 stays on the first line and is transient based on the legth of that first line. It might be nicer if it acted more like POSTDISPLAY.