From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jude DaShiell Newsgroups: gmane.emacs.help Subject: Re: pushing and popping the mark Date: Sun, 10 May 2015 09:41:00 -0400 (EDT) Message-ID: References: <87wq0h1kzz.fsf@debian.uxu> <3b561956-c3d1-490b-a02c-6b385cd20fb2@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1431265409 28628 80.91.229.3 (10 May 2015 13:43:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2015 13:43:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sam Halliday Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 15:43:20 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 1YrRVo-0000V4-1X for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 15:43:20 +0200 Original-Received: from localhost ([::1]:33595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrRVn-0005es-6p for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 09:43:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrRVX-0005eU-7b for help-gnu-emacs@gnu.org; Sun, 10 May 2015 09:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrRTa-0001bM-3J for help-gnu-emacs@gnu.org; Sun, 10 May 2015 09:41:05 -0400 Original-Received: from mailbackend.panix.com ([166.84.1.89]:51142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrRTa-0001bG-0D for help-gnu-emacs@gnu.org; Sun, 10 May 2015 09:41:02 -0400 Original-Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 2CF0212EE6; Sun, 10 May 2015 09:41:00 -0400 (EDT) Original-Received: by panix2.panix.com (Postfix, from userid 20712) id 0EF7E33C37; Sun, 10 May 2015 09:41:00 -0400 (EDT) Original-Received: from localhost (localhost [127.0.0.1]) by panix2.panix.com (Postfix) with ESMTP id 0A0E533C27; Sun, 10 May 2015 09:41:00 -0400 (EDT) In-Reply-To: <3b561956-c3d1-490b-a02c-6b385cd20fb2@googlegroups.com> User-Agent: Alpine 2.11 (NEB 23 2013-08-11) X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) X-Received-From: 166.84.1.89 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:104354 Archived-At: That's why you can write macros in emacs, for when precision and exact order of operations is essential. -- Twitter: JudeDaShiell On Sat, 9 May 2015, Sam Halliday wrote: > On Saturday, 9 May 2015 22:42:21 UTC+1, Emanuel Berg wrote: >> Sam Halliday writes: >> >>> 1. go to "new text", kill some relevant text 2. >>> go to "existing text", yank 3. repeat >> >> The best way to do this is to move (once), kill >> everything, move again (once), and yank everything. >> >> So use the kill *ring*. >> >> 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 keeps the kill ring intact. > > More generally though, this is a neat solution. I hadn't thought to do it this 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 prefer `C-x C-x` when there are more than a few things needing moved around, but prefer this in simple cases. >