From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19207 invoked by alias); 11 Sep 2015 23:07:08 -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: 36499 Received: (qmail 29441 invoked from network); 11 Sep 2015 23:07:07 -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=F6H3LcxCFrRd9IKqJooXOfIUeSYkqf/VlWaetKfUpWg=; b=S5scKN+LsBfaSqP7oSpBP2S+7QD4NctAxuHK13FMsi4SQWLqZRfucDw32ZgEvA9opM TLmw2V+Q5aFIgNz3a5+BqafmchAqYdcce5U4sBYvUNofXDfSeVuT3UFWcCT0ZC9lB82E D+H4yt5RMhFPgBIorPDbNAD2Sk4ymUNlY/gXeAbuvEoHXRh+Mb5yD6NA/p8drx1GIA8C yEQ5M1dIqVoFCxUesdZVg2JUZN1KbuXsIs2YlZJr6q31oecwKmH6+a6/sGM31Jw9t51J 2+472smR6wnR9zsFXACU3wJDTL8hqIWbDtBM1LWtjzxjURHHwp0fJVTuleC1IbFZ2LGe dz7w== X-Gm-Message-State: ALoCoQnD39RCEsyBHEcSX3A4U4ZjnFr+m4tvDLzuZ019OPZo6rea4iJXyFqPq6XYtsiqS9bVyPPf X-Received: by 10.202.171.216 with SMTP id u207mr1046408oie.107.1442012825933; Fri, 11 Sep 2015 16:07:05 -0700 (PDT) From: Bart Schaefer Message-Id: <150911160702.ZM8647@torch.brasslantern.com> Date: Fri, 11 Sep 2015 16:07:02 -0700 In-Reply-To: <20150910191143.GG10129@tarsus.local2> Comments: In reply to Daniel Shahaf "Re: bracketed paste - chopping trailing newlines" (Sep 10, 7:11pm) 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> 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 10, 7:11pm, Daniel Shahaf wrote: } } Yes, I also feel I'm repeating myself. I've already made my case a few } times. I've also suggested fixes and implemented them. I have been } trying to reach consensus, but so far haven't succeeded. As you can } imagine, by now I'm rather frustrated. This may be a situation where it's not possible to get consensus. We have I think three different approaches (Oliver's, Carsten's, yours) none of the three agrees with either of the others, and we haven't tried conducting any sort of poll. } 1. Don't strip newlines at paste } 2. Highlight pastes } 3. Strip newlines at accept-line that immediately follows a paste } } I think all objections to (2) have been addressed, apart from the } question of whether to use standout or underline. I think standout is } easier to spot and doesn't clash with zle_highlight[region]'s default I'm of two minds here. One, there is a relationship between paste and the region -- if the region is active, the paste replaces it. However, if there is no active region, the paste does not make it active (even though it sets MARK/CURSOR to the opposite ends and e.g. kill-region will kill the pasted text). So two, making the paste look the same as an active region may be misleading ... or, maybe it's OK because it's almost the same thing. I guess I agree with Oliver about the newline stripping.