From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1890 invoked by alias); 17 Aug 2015 22:00:17 -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: 36205 Received: (qmail 8287 invoked from network); 17 Aug 2015 22:00:14 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=HwbuetyfdrZ4fLGf Tq7ZHnwgrtw=; b=T3VUr1pGp70A0hwk5Q2LTmw1gpEIkG7Rx0iQTkBEMU/rXg4K WP2v5UvRuRS5Fi1c8qyPVMoMwQ2buql2uC4PGPhf6uWqz3hCy/wmpHjnHrVJZcI/ 5eXlrqP74F6O5IiqRM6cAThpe/+sf3QYMo+wL3vO9KLtBVywV2Y3XTUNHTA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=HwbuetyfdrZ4fLG fTq7ZHnwgrtw=; b=CMHhIMsa44Zi2ReuSnUehOs0YHXySHnWKQLJX64WwE4dAmR bPA7tZWJlfnAp/fAfS/qF/ytZM1WUtAgrVsHfsCA0d9SOwX+hSYtkTGaKYRn7otl CgwF1G6MxdfTHUN0aM1/o4noxZdHEMxzswf6G/cP9VHsJvbh+mhBEScV37Kg= X-Sasl-enc: Yz3LL+O+bZCWoG67OmTwYhE0cqRuPDhv55N5ix8oqQ4T 1439848808 Date: Mon, 17 Aug 2015 21:59:52 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: [PATCH] bracketed-paste: change quoting style Message-ID: <20150817215952.GA2283@tarsus.local2> References: <20150811220922.GF1859@tarsus.local2> <21668.1439477345@thecus.kiddle.eu> <150813092049.ZM28652@torch.brasslantern.com> <20150813231946.GE1998@tarsus.local2> <150813165709.ZM28957@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <150813165709.ZM28957@torch.brasslantern.com> User-Agent: Mutt/1.5.21 (2010-09-15) Bart Schaefer wrote on Thu, Aug 13, 2015 at 16:57:09 -0700: > On Aug 13, 11:19pm, Daniel Shahaf wrote: > } > } 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? > > No, but you have to set the mark before pasting; the action of pasting > does not make the region active (though it replaces the active region > if there is one). I see; so the workflow is . This is nice. However, I will keep using , because it's fewer keypresses. As to changing the default quoting style, I went ahead and pushed it. (Using single quotes is consistent with quote-region and quote-line.) I saw the discussion about which values of NUMERIC should cause quoting (36193) but I think it is orthogonal. As Oliver said — we can make further changes later if needed. Cheers, Daniel P.S. Someone pointed out on IRC that 'typeset -p IFS' prints a literal newline character. Perhaps it should use $''-quoting to escape the newline.