leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
577 stars 56 forks source link

xref-pop-marker-stack doesn't return to previous location #220

Open mecklen2022 opened 2 years ago

mecklen2022 commented 2 years ago

I'm running ggtags.el 0.9.0 on emacs 27.1 on jammy jellyfish xubuntu.

I use M-. to find a symbol and then try to return to my previous location with M-, xref-pop-marker-stack and get the response "Marker stack is empty". If instead I try M-. followed by C-x C-space pop-global-mark, I'm taken to some random buffer (it is usually a dired buffer for me). I would expect both of these to return me to the buffer and location where I entered M-. Thank you!

leoliu commented 2 years ago

Hi @mecklen2022,

mark and marker are two different things and xref or ggtags works with the latter. Could you try to see if you can reproduce bug with Emacs -q?

Leo