From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Tips for quick jumping back and forth Date: Sat, 07 Jul 2012 23:25:57 -0500 Organization: NewsGuy - Unlimited Usenet $19.95 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341721826 3043 80.91.229.3 (8 Jul 2012 04:30:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2012 04:30:26 +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 Jul 08 06:30:25 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 1Snj8S-0006vh-9t for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 06:30:16 +0200 Original-Received: from localhost ([::1]:51968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snj8R-00071W-73 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 00:30:15 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news3 Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: p713662bfeb82d5934254b238088ef27cdd3946d5cf3177e1.newsdawg.com User-Agent: Mozilla/5.0 (Windows NT 5.0; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: X-Received-Bytes: 2257 Original-Xref: usenet.stanford.edu gnu.emacs.help:193337 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:85723 Archived-At: Die Sat Jul 07 2012 00:43:59 GMT-0500 (Central Daylight Time) C K Kashyap scripsit: > Dear Emacs friends, > > I need some tips for quick jumping around. As in, say I'm editing a line > and need to go up a couple of paragraphs to edit something and then > resume at my original position. > 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 'm > > Now, I know that in emacs I can do it using C-x-r- to mark a > position 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? > > Regards, > Kashyap It might seem hokey to you, but the fastest way to navigate is usually via C-s and C-r. If your need is as simple as you describe it, just type your bookmark directly into the text (even in the middle of a word, wherever the cursor happens to be, e.g.: bbb or zzz. Then move to where you will edit with C-s or C-r and press enter (that leaves the cursor on the next character after (or next before with C-r) the search string in the minibuffer). Make your edit and then C-s or C-r back to bbb or zzz and delete it. Doing it this way makes use of only the simplest commands, the ones you use hundreds or thousands of times a day. Ed p.s. If isearch-recursive-edit variable worked then there might be a more elegant way to search, move, edit, return to start of search.