help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vim's jumplist equivalent in emacs?


From: Holger Sparr
Subject: Re: vim's jumplist equivalent in emacs?
Date: Thu, 07 Dec 2006 18:07:00 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

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]
`----

-- 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]