I use M-.
to jump to definitions of class/functions. Sometimes there are multiple classes with the same tag, so I need to use C-u M-.
to jump to multip
I use winner-mode
for this (and other similar situations).
Add (winner-mode 1)
to your init file, and then when you wish to return to the window configuration that you were in before jumping to the tags, you just type:
C-cwinner-undo
(repeating as many times as necessary)
If you had visited multiple tags in another buffer, this will get you back to your original buffer (or the previous buffer, at any rate) in a single step, rather than stepping back through the individual tags one by one.
If the tags have taken you through multiple buffers, then you'll need to type C-c