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 04:30:57 -0700 (PDT) Message-ID: <1e6c5c11-44fe-4b97-bef0-20149b34619b@googlegroups.com> References: 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 1431171319 31391 80.91.229.3 (9 May 2015 11:35:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2015 11:35: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 Sat May 09 13:35:18 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 1Yr32M-00022U-5e for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2015 13:35:18 +0200 Original-Received: from localhost ([::1]:58927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr32L-0008RH-EJ for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2015 07:35:17 -0400 X-Received: by 10.182.71.113 with SMTP id t17mr3928127obu.35.1431171057473; Sat, 09 May 2015 04:30:57 -0700 (PDT) X-Received: by 10.140.33.100 with SMTP id i91mr24381qgi.41.1431171057363; Sat, 09 May 2015 04:30:57 -0700 (PDT) Original-Path: usenet.stanford.edu!m20no885672iga.0!news-out.google.com!t92ni250qga.1!nntp.google.com!z60no6249371qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: 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 11:30:57 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:212040 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:104324 Archived-At: To answer my own question, with an alternative, below: On Saturday, 9 May 2015 12:18:39 UTC+1, Sam Halliday wrote: > I have found myself doing some repetitive editing recently that I am sure= can be optimised. >=20 > Let's say I have a chunk of existing text (in the middle of the buffer), = and a bunch of new text (at the bottom of the buffer) with bits of text tha= t I want to selectively kill and then yank into the existing text. >=20 > So the workflow looks like this: >=20 > 1. go to "new text", kill some relevant text > 2. go to "existing text", yank > 3. repeat >=20 >=20 > In terms of keys strokes this means: >=20 > 1. `C-U SPACE` (now near relevant "new text") then unavoidable manual key= strokes to select/kill > 2. `C-SPACE C-SPACE`, then `C-U SPACE` (does nothing) to add this locatio= n to the mark ring and ignore that mark in the ring. > 3. `C-U SPACE` (now near relevant "existing text") then unavoidable manua= l keystrokes to yank > 4. `C-SPACE C-SPACE`, then `C-U SPACE` (does nothing) to add this locatio= n to the mark ring >=20 > Actually, my fingers can confused and end up just using pageup/down :-/ >=20 > Obviously, steps 2 and 4 are undesirable. Is there a single command that = I can perform to effectively save the current point, then go to the second = mark in the mark ring? The workflow can also be optimised by opening a second frame into the same = buffer. That helps a lot because `C-x o` then jumps to approximately the lo= cations where I was wanting to set the marks anyway. However, it then requi= res me to split my screen... which is sometimes not ideal.