In Emacs I can edit something at location ‘b’ and do C-u C-Space to back to the last place I was, location ‘a’, in the buffer. But how do I get back to ‘b’? In short instead of popping the mark ring stack, I want its history preserved.
I have read the documentation on using bookmarks, registers and tags but I have to manually set those. As in the case of returning from a single detour using C-u C-Space I don’t want to have to remember to set anything.
I have many use-cases for this, but one that comes up most often is going back and forth between the “import …” section which is usually at the top of my program and my current edit location.
This question is indeed a duplicate of “How to move forward and backward in Emacs’ mark ring”. Thanks Sean!