From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: put input focus on active minibuffer Date: Fri, 19 Feb 2016 18:26:36 -0800 Message-ID: References: Reply-To: John Wiegley NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455935637 1066 80.91.229.3 (20 Feb 2016 02:33:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Feb 2016 02:33:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 20 03:33:51 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 1aWxMj-0005MZ-2o for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 03:33:49 +0100 Original-Received: from localhost ([::1]:57312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxMi-0007Pq-6K for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 21:33:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxMd-0007Ou-14 for emacs-devel@gnu.org; Fri, 19 Feb 2016 21:33:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWxMW-0007b5-Vx for emacs-devel@gnu.org; Fri, 19 Feb 2016 21:33:40 -0500 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:33757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxMW-0007ab-NE for emacs-devel@gnu.org; Fri, 19 Feb 2016 21:33:36 -0500 Original-Received: by mail-pf0-x235.google.com with SMTP id q63so60659263pfb.0 for ; Fri, 19 Feb 2016 18:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mail-followup-to:mime-version:content-type; bh=mxLHseNvRGPkE+QIQ5VEaJss1K2Vus7chn0zQpZIX28=; b=cKL5ct9NmALsXVFP+TPCFSvUhTkJG0WaYweEukyJmFGOPFlG969SGR+zh1JuHVlHnz woV79haqgPDbhfuVS9bAw8uffXUuv/zqTsAPR/UxZK3EtsDYOlPRpppHAZJopqMAG1+y iQoPrkOO0nxEjhT0eD6LP7y0MG6IsqImrLCNFd6bC0E6Rpjwu8TF+JSvfepM2e7Bq4Pg ICAIa4R6xPU6/a9am5VIReOdSTHP7pt/O69KNGq7KPiDB9569eUOnQkj2nZnghcu9y9R zuqmnsv1h1jhXDWImerrj8raRxrJ1dh3aPtBI2QlAI8AN7dmCZgmDlQ5A7BvzpVzpBFP JsaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:reply-to:mail-followup-to:mime-version :content-type; bh=mxLHseNvRGPkE+QIQ5VEaJss1K2Vus7chn0zQpZIX28=; b=UFQ5F+sNqHS0w6YM0ouzekMHvAS6THvK6Ml2MYPlYF3Ol8X0lWSjyLVTxsbsNLGAKi QndPg4PSKMO7PuDDTHN+jJsdFSCLYkXQrum16trJOC/SkAOdZGaxMzK4/QSbiGklq3Ho tglG2LqFvrlw8ID93gkRQgpI1J57MTuvywTeDgmVroNaDWr0KjEhoKpIvDJs1f1pEC9+ xB1c3k8D4DQT3wrqakbCMvucnqAYdO3CKsfVkPGu4QNhexC5+VcSHAnnrU6Xos8OZTAw BEs6s3TQGlmTi2RlEUQzSIYxgDphNM9sWPrtZQv7LyK7/QMcr63tv09r2K9oe95PXPsU EKGw== X-Gm-Message-State: AG10YORRUFfP5SLzvSzN7O3RN/0jo5CDWTvwp868F5XguukN6oppDnNqV0pr8sdaOrkRnQ== X-Received: by 10.98.69.155 with SMTP id n27mr22810508pfi.68.1455935613674; Fri, 19 Feb 2016 18:33:33 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id 19sm20545279pfb.64.2016.02.19.18.33.30 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 19 Feb 2016 18:33:30 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id DEF6F130D9B90; Fri, 19 Feb 2016 18:33:29 -0800 (PST) In-Reply-To: (Katsumi Yamaoka's message of "Fri, 12 Feb 2016 19:19:18 +0900") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Katsumi Yamaoka , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 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:200260 Archived-At: >>>>> Katsumi Yamaoka writes: > It would be useful if the input focus is always put on the > active minibuffer when a user clicks the mouse on any place of > the unselected Emacs frame. For instance, when an Emacs frame > is not selected and it is waiting for a user for a yes-or-no-p > answer, a user will likely click a normal window. In that case, > a user will have to do `C-x o' to go to the minibuffer now. I > can guess everyone has experienced such a situation. :) Hi Katsumi, Since Emacs allows the use of other buffers while the minibuffer is waiting for input, it's not uncommon to click on the window you want to interact with, regardless of whether a question is being asked. So I don't think we can change the default behavior to switch window focus based on such a question in the minibuffer. However, it does sound like an interesting configuration option, as I've indeed been in that scenario many times before. My recommendation would be to try out the code Alexis offered, and come back after some time has passed if you feel the change improves your experience well enough that it should become a standard option. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2