From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edward at Work Newsgroups: gmane.emacs.help Subject: Re: Tips for quick jumping back and forth Date: Wed, 11 Jul 2012 17:04:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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: dough.gmane.org 1342051515 17503 80.91.229.3 (12 Jul 2012 00:05:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2012 00:05:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 12 02:05:15 2012 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 1Sp6u8-0006rQ-Vz for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2012 02:05:13 +0200 Original-Received: from localhost ([::1]:45687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp6u8-00040i-1S for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2012 20:05:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 199.106.103.54 Original-X-Trace: posting.google.com 1342051447 19286 127.0.0.1 (12 Jul 2012 00:04:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 12 Jul 2012 00:04:07 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.106.103.54; posting-account=OOCDhQoAAABeImuEBTgzlNL2HuYGlJCj User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:193429 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:85813 Archived-At: On Friday, July 6, 2012 10:43:59 PM UTC-7, C K Kashyap wrote: > Dear Emacs friends, >=20 > > I need some tips for quick jumping around. As in, say I'm editing a l= ine and need to go up a couple of paragraphs to edit something and then res= ume at my original position.=A0 >=20 > The way I used to accomplish this in Vi was using mm to mark the current = position into m register and then go somewhere and come back by pressing &#= 39;m >=20 > > Now, I know that in emacs I can do it using C-x-r-<SPC> to mark a p= osition into a register and then jump back to it usng C-x-r-j ... is there = a better way? Rather, what's a better way? >=20 >=20 > > Regards, > Kashyap The simplest solution, provided you know ahead of time you're coming back, = is to 1) set the mark (C-space) (set-mark-command), 2) Go do what you need = to do wherever you need to do it, & finally 3) return by exchanging the poi= nt (where you are) with the mark (C-x C-x) (exchange-point-and-mark). Edward