Subject: Re: bug#47699: [PATCH] Improve completion-list-mode-map

From: Eli Zaretskii <[email-masked]>
Date: Sun, 11 Apr 2021 16:31:10 +0300

> Date: Sun, 11 Apr 2021 10:50:15 +0000
> From: Gregory Heytings <[email-masked]>
> cc: [email-masked]
> 
> In practice other-window works well there, but now that you mention it, I 
> agree with you that it's not safe enough.  What about:
> 
> (defun switch-to-minibuffer ()
>    "Select the minibuffer window."
>    (interactive)
>    (when (active-minibuffer-window)
>      (select-window (active-minibuffer-window))))

LGTM, thanks.  Did you test this with minibuffer-only frames?