Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs, do a search, copy some text, and then return to the point of search originally?

Tags:

emacs

I am doing a search backwards in the text in emacs, then I move the point around and do a modification or copy, but then can I return to the point of the search before or do I still have to search for text around that spot?

Best,

like image 647
Vass Avatar asked Nov 16 '10 18:11

Vass


1 Answers

Try

M-x pop-to-mark-command

And you can also get that functionality by C-u SPC or C-u C-@ (i.e. using a prefix argument with the set-mark-command).

For more information on the mark ring, read about the mark ring. There is also a global mark ring, which is basically a list of marks across buffers, which you can navigate via C-x C-SPC.

like image 90
Trey Jackson Avatar answered Nov 03 '22 01:11

Trey Jackson