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: Sun, 14 Feb 2016 15:52:28 +1100 Message-ID: <871t8fdhbn.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1455425584 6782 80.91.229.3 (14 Feb 2016 04:53:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Feb 2016 04:53:04 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 14 05:52:54 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 1aUog1-0007mc-Pv for ged-emacs-devel@m.gmane.org; Sun, 14 Feb 2016 05:52:53 +0100 Original-Received: from localhost ([::1]:47382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUog0-0006F3-Gt for ged-emacs-devel@m.gmane.org; Sat, 13 Feb 2016 23:52:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUofn-0006Ew-7C for emacs-devel@gnu.org; Sat, 13 Feb 2016 23:52:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUofi-0002eR-7f for emacs-devel@gnu.org; Sat, 13 Feb 2016 23:52:39 -0500 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:36531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUofi-0002eM-0F for emacs-devel@gnu.org; Sat, 13 Feb 2016 23:52:34 -0500 Original-Received: by mail-pa0-x22f.google.com with SMTP id yy13so67722722pab.3 for ; Sat, 13 Feb 2016 20:52: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=akNDQkC1LXPRizwyjjEUHBliLlSTSVOEibInjTDZypk=; b=fDMStTJemAtdTyvjkCeOzM9c8/Bi3Mu14MaAFoz0Xrz8Rs8c5aHeZe8oaIfetwu3kI yPCtGL4OMFgikgHV/XOv5WuA3BnKBgyjR7fCYHjboIxfrLyI+tCaLy8kV/3UKjj4HoK9 4Nc6PAEw4LcozGa/8sTXoyXIW/3c1dh5/bKfVbW7FSf7ibMtrJtn15XfYpedBm8r/HOu w7fo3OBNyilDfqCAuuPVeO0TMMAruqVnpE9wixX9//sOOLFlcR9S9/86kyP4Y1yfiz5A YfLvbHZpBhQB0qewI3rFHlaxdcmArRFRmUyENOkpq7bTT9TFwJwcrGW9tQ1WYLAp9vFA y5cg== 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=akNDQkC1LXPRizwyjjEUHBliLlSTSVOEibInjTDZypk=; b=dzXndq28IWDvDUnUrfuJmpoOGixKWpzTYvCDsZUeV3ey9Wb9yl5Xlii7alFfFX1Gg5 BkABPyW/AZmZybolWhB4xIdYMNjXpqAPpuhP9oF4BegafiruJr7U4X+aaADp3WXR6YMz D7dDYX5Olw/XMXI9Y2ufUk/hyZ6dz2EXJk3OSf4sm6SFuYGx4fwVyjpbKJkRz5olMmHc KUqBjQJknl2VeTSFDZqDf0THIW3urVXTG67Fpbl49Lb8sXTpgjw1aPYBb8I6wQGNBF9+ yjbNtaie4PNkBYvvYE5hI7gAeTmP6MWKGhSpzkWheufoTkW3rwVwFVuEEq50H3suv41k OsKg== X-Gm-Message-State: AG10YOQZmyjRD6RKy9FMPUCczk42YcrY3d9gP4NX2tbcl2DpLh6yu/kXaI1Nj57KQb2YZA== X-Received: by 10.67.8.100 with SMTP id dj4mr14096935pad.88.1455425553003; Sat, 13 Feb 2016 20:52:33 -0800 (PST) Original-Received: from localhost (CPE-58-161-15-29.cqqy2.win.bigpond.net.au. [58.161.15.29]) by smtp.gmail.com with ESMTPSA id 74sm29336256pfs.33.2016.02.13.20.52.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Feb 2016 20:52: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:c03::22f 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:199908 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: #+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.