In Emacs, C-u C-SPC will “jump to the mark, and set the mark from
position popped off the local mark ring”. Is there a way to go the opposite way around the mark ring? Say you have typed C-u C-SPC several times and want to go back to a mark you have seen without going all the way around the ring.
In Emacs, C-u C-SPC will jump to the mark, and set the mark from
Share
It doesn’t do exactly what you’re asking for, but it might be worth looking for a package called marker-visit.el which lets you navigate the marks in the current buffer in ‘buffer position order’. From that file:
I bind [S-up] and [S-down] to marker-visit-prev and marker-visit-next respectively.
If you really want/need to navigate in the order your mark-ring has currently, then you might get somewhere by looking at the functions pop-to-mark-command and pop-mark and implementing your own versions to rotate the mark ring in the opposite direction.