Zsh Mailing List Archive
Messages sorted by:
Re: [PATCH] bracketed-paste: change quoting style
- X-seq: zsh-workers 36152
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] bracketed-paste: change quoting style
- Date: Thu, 13 Aug 2015 23:19:46 +0000
- Cc: zsh-workers@xxxxxxx
- 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=
- In-reply-to: <150813092049.ZM28652@torch.brasslantern.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150811220922.GF1859@tarsus.local2> <email@example.com> <150813092049.ZM28652@torch.brasslantern.com>
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.
> } 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 <bracketed-paste><quote-region> 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.)
Messages sorted by: