From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: pushing and popping the mark Date: Sat, 9 May 2015 15:11:20 -0700 (PDT) Message-ID: <3b561956-c3d1-490b-a02c-6b385cd20fb2@googlegroups.com> References: <87wq0h1kzz.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1431209719 14344 80.91.229.3 (9 May 2015 22:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2015 22:15:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 00:15:19 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YrD1i-0007X3-VV for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 00:15:19 +0200 Original-Received: from localhost ([::1]:60593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrD1h-0004QC-PL for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2015 18:15:17 -0400 X-Received: by 10.182.79.234 with SMTP id m10mr7664338obx.22.1431209480639; Sat, 09 May 2015 15:11:20 -0700 (PDT) X-Received: by 10.140.37.129 with SMTP id r1mr50667qgr.18.1431209480614; Sat, 09 May 2015 15:11:20 -0700 (PDT) Original-Path: usenet.stanford.edu!m20no9893399iga.0!news-out.google.com!k20ni2059qgd.0!nntp.google.com!j5no6354233qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <87wq0h1kzz.fsf@debian.uxu> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.13.129.22; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 82.13.129.22 User-Agent: G2/1.0 Injection-Date: Sat, 09 May 2015 22:11:20 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:212055 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104339 Archived-At: On Saturday, 9 May 2015 22:42:21 UTC+1, Emanuel Berg wrote: > Sam Halliday writes: >=20 > > 1. go to "new text", kill some relevant text 2. > > go to "existing text", yank 3. repeat >=20 > The best way to do this is to move (once), kill > everything, move again (once), and yank everything. >=20 > So use the kill *ring*. >=20 > When you yank, if it isn't what you like, do > (immediately after the yank) `M-y' for `yank-pop'. I know this is called `yank-pop`, but it is more of a "peek" because it kee= ps the kill ring intact. More generally though, this is a neat solution. I hadn't thought to do it t= his way. The only problem with it is that it necessitates doing everything = in exact order and not making any mistakes along the way. Therefore, I'll p= refer `C-x C-x` when there are more than a few things needing moved around,= but prefer this in simple cases.