Subject: Re: bug#45072: 28.0.50; Emacs switches other buffer back uncontrollably, if other window's buffer is changed by user during minibuffer editing

From: martin rudalics <[email-masked]>
Date: Sun, 13 Dec 2020 08:26:34 +0100

> I tried to add it to 'exit-minibuffer', and it seems working fine
 > with non-nil read-from-minibuffer-restore-windows, and I know no other
 > place that could call minibuffer-hide-completions:

But 'minibuffer-hide-completions' uses 'bury-buffer' which would delete
the completions window unconditionally even when it was only reused for
showing completions.  IMO 'bury-buffer' is practically always the wrong
choice for Lisp functions to call.

martin