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

From: Dmitry Gutov <[email-masked]>
Date: Sun, 19 Apr 2015 02:21:42 +0300

On 04/18/2015 07:46 AM, Stefan Monnier wrote:

> It seems always the same of the 2 frames is used for the jump, so
> depending on which one is used for the M-. the behavior is either the
> expected one or not.

What I'm seeing here is, when you click on one of the entries (or press 
RET), `xref-goto-xref' doesn't delete the frame displaying the xref 
window (nor does the window get deleted, naturally).

That screws things up the subsequent times the xref buffer, and its 
window, are used. The frame that's always "used for the jump", is the 
one *xref* was popped from originally.

Isn't this a bug in `quit-window'? I can reproduce it this way:

(setq special-display-regexps (list "^\\*"))
C-h f quit-window --> that creates a new frame
q --> the frame is simply buried

'C-u q' does the trick, though.