unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Tips for quick jumping back and forth
Date: Sat, 07 Jul 2012 23:25:57 -0500	[thread overview]
Message-ID: <jtb24j01sh1@news3.newsguy.com> (raw)
In-Reply-To: <mailman.4232.1341639863.855.help-gnu-emacs@gnu.org>

Die Sat Jul 07 2012 00:43:59 GMT-0500 (Central Daylight Time) C K
Kashyap <ckkashyap@gmail.com> 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-<SPC> 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.


  parent reply	other threads:[~2012-07-08  4:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4232.1341639863.855.help-gnu-emacs@gnu.org>
2012-07-07  8:02 ` Tips for quick jumping back and forth José A. Romero L.
2012-07-07 10:48 ` Xah Lee
2012-07-08  4:25 ` B. T. Raven [this message]
2012-07-12  0:04 ` Edward at Work
2012-07-11 13:36 Dmitry Gutov
2012-07-11 14:40 ` Eric Abrahamsen
2012-07-11 15:02 ` Drew Adams
2012-07-11 17:31   ` Dmitry Gutov
2012-07-11 18:33     ` Drew Adams
2012-07-11 21:03       ` Dmitry Gutov
2012-07-11 23:44         ` Drew Adams
2012-07-12 21:30           ` Dmitry Gutov
  -- strict thread matches above, loose matches on Subject: below --
2012-07-07 15:27 Dmitry Gutov
2012-07-08  3:28 ` C K Kashyap
2012-07-08  3:31   ` suvayu ali
2012-07-08  3:35     ` C K Kashyap
2012-07-09  2:01     ` Ken Goldman
     [not found]   ` <mailman.4284.1341718295.855.help-gnu-emacs@gnu.org>
2012-07-08  3:47     ` rusi
     [not found] ` <mailman.4283.1341718129.855.help-gnu-emacs@gnu.org>
2012-07-08 17:28   ` Xah Lee
2012-07-07 13:39 Dmitry Gutov
2012-07-07  5:43 C K Kashyap
2012-07-07  6:19 ` Jambunathan K
2012-07-11  9:57   ` Philipp Haselwarter
2012-07-07  6:45 ` Andreas Röhler
2012-07-07 13:56 ` Francesco Mazzoli
     [not found] ` <mailman.4249.1341669396.855.help-gnu-emacs@gnu.org>
2012-07-07 14:44   ` notbob
2012-07-20 13:02     ` Kevin Rodgers
2012-07-20 13:15       ` Jambunathan K
2012-07-09  2:59 ` Le Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jtb24j01sh1@news3.newsguy.com \
    --to=btraven@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).