My code navigation with emacs dumb-jump has C-M-g (jump to location) and C-M-P (jump back). I find it really hard to work without that ☺
(IntelliJ has something similar that I have mapped on CTRL-<back-arrow>)
Also useful is "move back to last edit location".