|
From: | Alexis |
Subject: | Re: put input focus on active minibuffer |
Date: | Mon, 15 Feb 2016 13:43:28 +1100 |
User-agent: | mu4e 0.9.16; emacs 24.5.3 |
Drew Adams <address@hidden> writes:
> No, please do not do this. A user should be able to select > different buffers and windows, including by clicking the > mouse or using keyboard keys, while the minibuffer is active. > A user should be able to do all kinds of things while the > minibuffer is active - including come back to the minibuffer > to continue inputting text there etc.Agreed.But, if using GNU Emacs 24.4 or later, perhaps make use of `focus-in-hook`? For example, something along the lines of:(defun focus-to-active-minibuffer () (if (minibuffer-window-active-p (minibuffer-window)) (select-window (minibuffer-window))))(add-hook 'focus-in-hook #'focus-to-active-minibuffer)If you do that then whenever a frame receives the focus so will its (active) minibuffer window. That precludes the user interactions I described above, and about which you "Agreed".
Well, my suggestion was code to help the OP achieve the effect they want, without any other GNU Emacs users being affected. i'm sorry that my wording seems to have conveyed the impression that i was suggesting that my code be incorporated directly into GNU Emacs itself.
Alexis.
[Prev in Thread] | Current Thread | [Next in Thread] |