From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11674 invoked by alias); 13 Aug 2015 23:19:54 -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: 36152 Received: (qmail 17155 invoked from network); 13 Aug 2015 23:19: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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=evkRg7lNn7Nj+iJ9IU7tZc0I/uc=; b=BnpuSZ QhA0rTDvdpRK5s7B328RUoIDBAIr2TNo4jR2J4YJlfEfXxLEtcA7wgExFYLnd1TU VOsxiEF2b+QNmP1lU6rIE9vRLPvIitcT+ASxAMn70AM1fTo5ilDGI0Zr3ypID42y rHm84OmW6OjNccOv2J432+SH725NIpT9pgRFQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=evkRg7lNn7Nj+iJ9IU7tZc0I/uc=; b=qtfqc PN+Yb+/UnglSxSBxa5XcWwwA3SjtSX7Bc2ppA/hdunbyvQ5/xdw7H36G44jFcBJG LYdzzd5qc109Jz77Chdfg27nvhJAogu605YXF2jSQ47SxMA37aXNPXL3fPAT57Jb agmQMwLDcyzAWJYityIynVUVzgMj7pOhIJmxfQ= X-Sasl-enc: CXMDoIOkUT3/4SiGmCHk980DFaqhaq+WKyc5gpvIYhKj 1439507988 Date: Thu, 13 Aug 2015 23:19:46 +0000 From: Daniel Shahaf To: Bart Schaefer Cc: zsh-workers@zsh.org Subject: Re: [PATCH] bracketed-paste: change quoting style Message-ID: <20150813231946.GE1998@tarsus.local2> References: <20150811220922.GF1859@tarsus.local2> <21668.1439477345@thecus.kiddle.eu> <150813092049.ZM28652@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <150813092049.ZM28652@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) Bart Schaefer wrote on Thu, Aug 13, 2015 at 09:20:48 -0700: > On Aug 13, 4:49pm, Oliver Kiddle wrote: > } > } I'd agree that it is less ugly but there was some rationale behind the > } choice of \-quoting. It is easier to remove unwanted characters. > > It's easier to remove the unwanted characters if there isn't very much > text being pasted or if all the unwanted characters are at the end ... > but if there are a bunch of backslashes scattered throughout a large > paste it gets ugly. Exactly. > } What I was hoping to get at with the vim-style `[ and `] marks was a way > } to retrospectively quote the pasted text. Doing things in that order > } seems more helpful and more flexible. > > Yes, invoking quote-region after the paste allows you to first clean up > the tail end before adding the quotes, so you get the best of both. I agree that separating the "paste it" and "quote it" to separate steps would be good, but it doesn't seem to work in current git: invoking quote-region quotes the entire command line, not only the pasted part. Does it depend on an uncommitted patch or something? If the sequence worked, then I'd suggest to make bracketed-paste not check NUMERIC at all (and never quote the pasted text), so we could assign NUMERIC a different meaning in the future, if we wanted to. (I suppose this echoes Mikael's remarks about a minimal bracketed-paste-raw.) Cheers, Daniel