emacs-devel
[Top][All Lists]
Advanced

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

Re: put input focus on active minibuffer


From: Alexis
Subject: Re: put input focus on active minibuffer
Date: Sun, 14 Feb 2016 15:52: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:

#+BEGIN_SRC emacs-lisp

(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)
#+END_SRC


Alexis.



reply via email to

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