Questions tagged [mark-ring]
The mark-ring tag has no usage guidance.
5 questions
49
votes
12
answers
9k
views
How to switch back and forth between two locations in a buffer
Sometimes I find myself frequently alternating between two functions that I am editing in conjunction with each other. In these situations, it is tedious and painful to keep on doing a C-s <...
43
votes
6
answers
7k
views
Effectively using the mark ring
I have used the mark to select regions of a buffer. For example, I know the sequence C-<space> C-s foo can be used to select all text between the current point and the point after a search for ...
8
votes
3
answers
2k
views
How do I view the mark ring?
Is there a command to view the entries in the mark ring, similar to listing buffers with C-x C-b or viewing the kill ring with the function browse-kill-ring or viewing the jump list (in info mode) ...
2
votes
1
answer
273
views
pop-mark not working as expected
I have some sample code like this:
(defun some-function ()
(interactive)
(push-mark)
(goto-char (point-min))
; do some stuff
(pop-mark))
Now I'm expecting pop-mark to get me back to the ...
0
votes
1
answer
297
views
How to automatically set marks on all of the edited lines?
I would like to automatically set marks on all of the edited lines so that I can go back to any of my previous edited lines using helm-mark-ring.