Subject: bug#20353: M-. sometimes jumps in another window

From: Dmitry Gutov <[email-masked]>
Date: Mon, 20 Apr 2015 22:37:41 +0300

On 04/20/2015 10:28 PM, Stefan Monnier wrote:

> I think the issue is much simpler: xref should explicitly remember the
> window from which *xref* comes, so that it can explicitly go back to it
> (if it still exists) when we select an entry.

Why remember more things, if we can do with less?

We *do* want pressing `q' to return to the window *xref* buffer was 
opened from, right? The natural way to do that is with `quit-window'.

And when `xref-quit' works as intended, `xref-goto-xref' should be able 
to reuse it successfully.