Subject: Re: bug#36497: pop-to-buffer + quit-window negates with-current-buffer
From: Stefan Kangas <[email-masked]>
To: martin rudalics <[email-masked]>
Cc: [email-masked]
Date: Thu, 4 Jul 2019 21:33:54 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

martin rudalics <[email-masked]> writes:
> Both 'pop-to-buffer' and 'quit-window' may call 'select-window' which
> implicitly makes that window's buffer current.  In the case at hand,
> 'quit-window' deletes the window of *bar* since it didn't exist
> before, selects the window selected before 'pop-to-buffer' was called
> and makes that window's buffer current.  So the current behavior is
> the expected one.

Thanks for the detailed explanation -- that makes sense.

I'm closing the bug report.  Sorry about the noise.

Thanks,
Stefan Kangas