From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12177 invoked by alias); 24 Jul 2015 19:45:27 -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: 35887 Received: (qmail 3848 invoked from network); 24 Jul 2015 19:45:25 -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=+Wv9IvgQYLYeVfgZ+rRWu7csLZP2NTB1lrqpHIvvdfs=; b=BsHvEYoM+RRl0YnD+9w/WcOV1e3kzj6WSnMS0I/IgaYDqJRdk8WK/n0CnMa2yL/tXb DgsvsRc2NGVAq0265XUSWFGAhYEsmypl+LiL4g5pyqPfePD1/JmJJG+pXhWDJKOjHyRk 5yIfBAEVtQD16nOqBEzVl1+MPMR18KYD5GGBVAhWxSn1pNdzjW8VBpGYv0ePR6a7VgfZ EW3a9zMk73Z3Q6iP319fl8Tbn6ATrI7NU66PVj8cKreudWmHsWb+tZxytQV9ANrLBhgW HYJSpJPifRCOH+/f4sC26oI90MbENBby2s5WinUgV3q+8Qf2U0b9E4lLNFiJfPyv9EEA qv0w== X-Gm-Message-State: ALoCoQm4t4g8FSeq8qo7PoMPr4RyLaJyAnZzqB8hdObDhoyQnYC3Z0Aq340emf/MXraOoqsWsz0N X-Received: by 10.60.59.102 with SMTP id y6mr17298034oeq.53.1437767122638; Fri, 24 Jul 2015 12:45:22 -0700 (PDT) From: Bart Schaefer Message-Id: <150724124518.ZM19481@torch.brasslantern.com> Date: Fri, 24 Jul 2015 12:45:18 -0700 In-Reply-To: <9889.1437764790@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "Vim special marks - Re: PATCH: highlight pasted text" (Jul 24, 9:06pm) References: <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> <485.1437632598@thecus.kiddle.eu> <150723220642.ZM18235@torch.brasslantern.com> <9889.1437764790@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: Vim special marks - Re: PATCH: highlight pasted text MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 24, 9:06pm, Oliver Kiddle wrote: } Subject: Vim special marks - Re: PATCH: highlight pasted text } } Vim has special marks for jumping to the start and end of the most } recent change: `[ and `]. There's also `. which is similar. In effect, } this is much the same as yankb and yanke after a paste. I think it'd } be better to make something more general like that available. It's } a feature I use quite a bit in vim. Is there anything in emacs like } yankb/yanke? Emacs moves MARK to the position of CURSOR from before the yank, and then places CURSOR at the end of the yank. This seems to apply whether using internal commands or pasting from the X clipboard. There are no other special marks as far as I know. However, it does not highlight the text between MARK and CURSOR as a region unless you e.g. exchange-point-and-mark after pasting. Region operations like indent-region act on the pasted text, though.