Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Emacs, how to go back to previous line position after using semantic Jump to Symbol?

Tags:

emacs

I know how to go to a variable definition in Emacs using semantic-mode. It works well in a single file (I think it doesn't work if the definition is in another file). Using C-c , j, I can go to the definition of the variable, but, how do I jump back to the previous line? Currently I use display Symref C-c , g, and select the displayed symref.

Is there any straight method?

like image 552
swdev Avatar asked Feb 07 '11 06:02

swdev


People also ask

How do I go back in Emacs?

To get back into Emacs, type %emacs at the shell prompt. To quit Emacs permanently, type C-x C-c.

How do I get to the top in Emacs?

Ctrl-O is its complement, moving forward through the jumplist. gg jumps to the top of the file, so Ctrl-I then jumps back. The equivalent to Ctrl-I in Emacs would be C-u C-space .


1 Answers

Use:

C-u C-space or C-u C-@

If you want to navigate back between buffers, you can use:

C-x C-space or C-x C-@

This makes Emacs jump to the mark (and set the mark from position popped off the local mark ring) which has usually been set by a previous jump command.

like image 183
Thomas Avatar answered Oct 28 '22 16:10

Thomas