bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command


From: Gregory Heytings
Subject: bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command
Date: Tue, 04 May 2021 07:41:53 +0000


You mean your earlier

FWIW, I think we should instead temporarily disable mouse-autoselect-window when a minibuffer is active.

as in the untested below?

Something like that (I didn't yet have time to test the patch).


I see what you mean, but that patch at least doesn't work; apparently with this recipe mouse-autoselect-window-select is never called. And the problem is that between ESC and x minibuffer-depth is still = 0.


My reasoning is simple: switching windows by a keyboard command or by clicking the mouse is an intentional user action, for which he/she is fully responsible. By contrast, moving the mouse pointer can be accidental, so disabling only it in these situations makes much more sense than disabling window-switch entirely.


My patch does not disable window-switching entirely, an explicit mouse click works: ESC mouse-1 is undefined, but the window in which the click happens is selected.

After pressing ESC, keyboard commands do not do run what one would expect, e.g. C-x o does not run other-window but (in an Elisp buffer) eval-defun (i.e. C-M-x) followed by self-insert-command ('o').





reply via email to

[Prev in Thread] Current Thread [Next in Thread]