From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16465 invoked by alias); 19 Jul 2015 08:17:44 -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: 35827 Received: (qmail 167 invoked from network); 19 Jul 2015 08:17:43 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL 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=oAYRFllqoK3dOAMdtQyhEJKdCCCCCVRJfObfdeowysQ=; b=Kff8/GcxaPbo88ZifCiapkev3RuY4PQisGEEdUxNz2PZ+/5ojbpehgm23qiIQ0+f+n isOOHfhJvF+lMbUGvDv7pVGKyWUKMNt+0eWRx+N4c8Z/Bk6Cah6Dc3iWnstoiT2RmIMA 1nlftaZqVo6JAdUwgZHIRKpVM5qkSF+5bMs7QMcsYq/lggcNgPmo8VEdMCdVR1dBaFod Ros8TFDhHQZghmY1dyAvV+Sr069gzxbhkw7WIHIKyoDcAzjx4gmDX4M5K/qk6pSiPnG0 o7O0IILTn+qIwielbJyZK1stCmoJANfF0b9c2IFNZcFTs/ogL9u5O0PNgmVHlLbmVpDQ GDLA== X-Gm-Message-State: ALoCoQkILP+Qc5ejBpxZjzvJpxQkcPKtWiSk7A1mkolICBxRs/+SRhyv5p9xVOVLEuEOR7bvsQ58 X-Received: by 10.60.98.40 with SMTP id ef8mr21746202oeb.7.1437293861408; Sun, 19 Jul 2015 01:17:41 -0700 (PDT) From: Bart Schaefer Message-Id: <150719011738.ZM18428@torch.brasslantern.com> Date: Sun, 19 Jul 2015 01:17:38 -0700 In-Reply-To: <19088.1437274234@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "PATCH: highlight pasted text" (Jul 19, 4:50am) References: <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: PATCH: highlight pasted text MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 19, 4:50am, Oliver Kiddle wrote: } } How about the following patch? This adds another special token to } zle_highlight. So you can do, e.g: zle_highlight+=( paste:bg=87 ) } This applies also for vi put and emacs yank commands. } } Text from a bracketed paste is now added to the cutbuffer. } } I had been pondering how to interface bracketed-paste with vi registers, } anyway. This will now also put the bracketed paste in the numbered } registers. This all sounds fine to me. I'm not certain of the real emacs behavior; I suspect it may have morphed over time and I don't know the most recent incarnation.