|
From: | Gregory Heytings |
Subject: | bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command |
Date: | Tue, 04 May 2021 14:43:01 +0000 |
Yes, this is better. But I wonder if we can do better yet. I see that we already have machinery in place to delay auto-selection for some reason or other -- can we use this feature in this case, perhaps? See mouse-autoselect-window-state and its users. Perhaps we can delay the auto-selection until after the key sequence started by ESC is processed?Would doing that not contradict the docstring of mouse-autoselect-window, which says: "Autoselection [...] never unselects the minibuffer if it is active."?I don't think so, because the selection will be after the user exits minibuffer? Or what am I missing?
Indeed, with that understanding there is no contradiction. But what "autoselection [...] never unselects the minibuffer if it is active" means in practice is that autoselection is disabled while the minibuffer is active. If you M-x, move the mouse to another window, type a command and RET, no autoselection happens. I'm not sure that the complexity of what you suggest is worth the price for this specific case (ESC x instead of M-x), given what the behavior is with M-x.
[Prev in Thread] | Current Thread | [Next in Thread] |