From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.devel Subject: Re: put input focus on active minibuffer Date: Mon, 15 Feb 2016 13:43:28 +1100 Message-ID: <8737suu20f.fsf@gmail.com> References: <871t8fdhbn.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1455504240 12703 80.91.229.3 (15 Feb 2016 02:44:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2016 02:44:00 +0000 (UTC) Cc: Katsumi Yamaoka , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 15 03:43:55 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 1aV98i-0005r0-VV for ged-emacs-devel@m.gmane.org; Mon, 15 Feb 2016 03:43:53 +0100 Original-Received: from localhost ([::1]:55592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV98i-0003Z1-96 for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2016 21:43:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV98T-0003X6-3P for emacs-devel@gnu.org; Sun, 14 Feb 2016 21:43:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV98P-0001qV-UL for emacs-devel@gnu.org; Sun, 14 Feb 2016 21:43:37 -0500 Original-Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:34748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV98P-0001qQ-Me for emacs-devel@gnu.org; Sun, 14 Feb 2016 21:43:33 -0500 Original-Received: by mail-pf0-x234.google.com with SMTP id x65so79249660pfb.1 for ; Sun, 14 Feb 2016 18:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=eXD+Dj2V6vybk2HBKyTGk0xFbRDiK2awc70LLPNGTuo=; b=n5qsWYRXBkK5FOyzaASGycXYfpSXkRqbNrU3k3MsIHTSi7JauhjEA4eQcQkmqn+dpj 9cCwapzWJ4Z1yv486cE6uiK2yz9+quRp5yPBq+JRkiumtxrtxNC8EzpjAO1n+rqHRYIT FP0/03FOGFPGAYmvSFuek5w/5ihk2UIPsVT4hY1MqLWxLDJQ3GCjZRTUaVF4BX+gcljJ OFijNWOD0OG4F5h1cL8V/Uy9y4opg5yJJKio+zSJMJtOUMfswyhkPXooAYOQdG1EYzE4 AC7UeZS8ebZAaFsXU7I2Qt2L4W5CGE0isW0O6/H1pSZ492yODxII+WoLtlietw2W7HiA JkTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; bh=eXD+Dj2V6vybk2HBKyTGk0xFbRDiK2awc70LLPNGTuo=; b=HKRqI93F6EccC/yLKLkqTLLCoHwMIdE+FMYSRuVnggPEN9KcFMqhLtL89RDJIbilip 9SIazqZJogjPsCuHHxZvYZiYez+F1Zkgwp2aY8Z7IGHKlOdLovEdqRJOVzDfDq/FCD4/ Dd5+7kkx7hc5UOMAFqCb2e//xEnVezEo34Y5icnL0NjSQwoewMj8KpIuFc/PuV8h2sRY lTkASasR/UOU1unC18ehaNCY1qjIKiTYSDftCekUpGLwVnv/eDsLwcuxVJRrUuM8G+RL HaPiF4LsJMPojk/UklOW6lXX+N/A+HENYVAwPs5JxsQaAIHSnUcA7aBBFu4g/t8XZmqA E3Rw== X-Gm-Message-State: AG10YORgO7TcPHhhbw44VRIc0EiUde2vvEzfjaRONt0UOiSlmGuULjHsvVRPOmiMNt9LEg== X-Received: by 10.98.86.139 with SMTP id h11mr20322311pfj.105.1455504212775; Sun, 14 Feb 2016 18:43:32 -0800 (PST) Original-Received: from localhost (114-198-79-98.dyn.iinet.net.au. [114.198.79.98]) by smtp.gmail.com with ESMTPSA id x1sm34202017pfi.42.2016.02.14.18.43.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Feb 2016 18:43:32 -0800 (PST) User-agent: mu4e 0.9.16; emacs 24.5.3 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::234 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:199946 Archived-At: Drew Adams 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.