From: Holger Sparr <sparr+usenet@mfk.tu-dresden.de>
Subject: Re: vim's jumplist equivalent in emacs?
Date: Thu, 07 Dec 2006 18:07:00 +0100 [thread overview]
Message-ID: <lnfybrprd7.fsf@mfk.tu-dresden.de> (raw)
In-Reply-To: 1165481183.610837.121580@79g2000cws.googlegroups.com
On Thu, 07 Dec 2006, "Thomas" <totohero@empal.com> wrote:
> In vim, some kind of user actions like text search, tag search or
> opening new file are regarded as 'jump action'. Every position, whether
> it's in one buffer or in another, before/after those jumps are
> automatically recorded in 'jump list', so you can navigate
> forward/backward the postions using Ctrl+O / Ctrl+I. May I find a
> similar job done for emacs?
The others pointed out C-u C-SPC. There is C-x C-SPC, too.
,----[ C-h k C-SPC ]
| C-SPC runs the command set-mark-command
| which is an interactive compiled Lisp function in `simple.el'.
| It is bound to C-@, C-SPC.
| (set-mark-command arg)
|
| Set mark at where point is, or jump to mark.
| With no prefix argument, set mark, and push old mark position on local
| mark ring; also push mark on global mark ring if last mark was set in
| another buffer. Immediately repeating the command activates
| `transient-mark-mode' temporarily.
|
| With argument, e.g. C-u C-@, jump to mark, and pop a new position
| for mark off the local mark ring (this does not affect the global
| mark ring). Use C-x C-@ to jump to a mark off the global
| mark ring (see `pop-global-mark').
|
| If `set-mark-command-repeat-pop' is non-nil, repeating
| the C-@ command with no prefix pops the next position
| off the local (or global) mark ring and jumps there.
|
| With a double C-u prefix argument, e.g. C-u C-u C-@, unconditionally
| set mark where point is.
|
| Setting the mark also sets the "region", which is the closest
| equivalent in Emacs to what some editors call the "selection".
|
| Novice Emacs Lisp programmers often try to use the mark for the wrong
| purposes. See the documentation of `set-mark' for more information.
|
| [back]
`----
--
prev parent reply other threads:[~2006-12-07 17:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 8:46 vim's jumplist equivalent in emacs? Thomas
2006-12-07 10:57 ` Mathias Dahl
2006-12-07 13:02 ` Robert Thorpe
2006-12-07 17:17 ` Holger Sparr
2006-12-12 5:43 ` totohero
2006-12-12 7:58 ` Holger Sparr
2006-12-12 5:54 ` Thomas
2006-12-12 7:41 ` Thomas
2006-12-12 18:43 ` Robert Thorpe
2006-12-13 0:50 ` Thomas
2006-12-13 1:15 ` Thomas
2006-12-17 2:17 ` Drew Adams
2006-12-13 8:29 ` Holger Sparr
2006-12-07 17:07 ` Holger Sparr [this message]
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=lnfybrprd7.fsf@mfk.tu-dresden.de \
--to=sparr+usenet@mfk.tu-dresden.de \
/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).