From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: put input focus on active minibuffer Date: Sun, 14 Feb 2016 19:01:21 -0800 (PST) Message-ID: <636a172f-7790-4245-9c6e-1d7b77d8aa35@default> References: <871t8fdhbn.fsf@gmail.com> <8737suu20f.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1455505322 27659 80.91.229.3 (15 Feb 2016 03:02:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 03:02:02 +0000 (UTC) Cc: Katsumi Yamaoka , emacs-devel@gnu.org To: Alexis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 15 04:01:50 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aV9Q5-0006wU-Rz for ged-emacs-devel@m.gmane.org; Mon, 15 Feb 2016 04:01:50 +0100 Original-Received: from localhost ([::1]:55679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV9Q2-00077Q-1u for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2016 22:01:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV9Pp-000776-AO for emacs-devel@gnu.org; Sun, 14 Feb 2016 22:01:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV9Pk-0005fR-BF for emacs-devel@gnu.org; Sun, 14 Feb 2016 22:01:33 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:25718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV9Pk-0005eT-3S for emacs-devel@gnu.org; Sun, 14 Feb 2016 22:01:28 -0500 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1F31M6K024038 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 15 Feb 2016 03:01:23 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u1F31Mej013972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 15 Feb 2016 03:01:22 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u1F31M50025212; Mon, 15 Feb 2016 03:01:22 GMT In-Reply-To: <8737suu20f.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199948 Archived-At: > >> 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". >=20 > 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. I see. You were saying how to do it on one's own, and not speaking to the OP's feature request for Emacs. Sorry for not understanding that.