From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11566: 24.0.97; `read-from-minibuffer': focus to standalone minibuffer frame? Date: Tue, 29 May 2012 13:28:24 -0700 Message-ID: <311006E0722F4F798C1F973A211FD1CB@us.oracle.com> References: <6A40227DCFBF427491B710A473E45744@us.oracle.com> <4FC22A8D.6040801@gmx.at> <8D43F91B0096402A9BCA59FE13513358@us.oracle.com> <4FC49A24.7000403@gmx.at> <96A3CCDD100E49C6ACF2739484C9239A@us.oracle.com> <838vgb2dr1.fsf@gnu.org> <9A9A32EAE9D64B438EDA74E1F3F488FE@us.oracle.com> <831um32azg.fsf@gnu.org> <4AFBBDB704B34BB18E08E02CE02AD58B@us.oracle.com> <83y5oa22ie.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338323387 12169 80.91.229.3 (29 May 2012 20:29:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 20:29:47 +0000 (UTC) Cc: 11566@debbugs.gnu.org To: "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 29 22:29:44 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SZT30-0008Vt-RM for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 22:29:43 +0200 Original-Received: from localhost ([::1]:36438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZT30-0005wu-Jd for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 16:29:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZT2x-0005wl-Ji for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 16:29:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZT2v-00089r-Qh for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 16:29:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZT2v-00089g-O9 for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 16:29:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SZT4H-0008Ik-Q8 for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 16:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 May 2012 20:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11566 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11566-submit@debbugs.gnu.org id=B11566.133832341931856 (code B ref 11566); Tue, 29 May 2012 20:31:01 +0000 Original-Received: (at 11566) by debbugs.gnu.org; 29 May 2012 20:30:19 +0000 Original-Received: from localhost ([127.0.0.1]:48842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZT3Y-0008Hj-UX for submit@debbugs.gnu.org; Tue, 29 May 2012 16:30:19 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:21105) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZT3W-0008HV-5U for 11566@debbugs.gnu.org; Tue, 29 May 2012 16:30:15 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4TKSgvR026856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 29 May 2012 20:28:43 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4TKSfXl017722 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 May 2012 20:28:41 GMT Original-Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4TKSeCq030503; Tue, 29 May 2012 15:28:40 -0500 Original-Received: from dradamslap1 (/10.159.177.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 29 May 2012 13:28:40 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <83y5oa22ie.fsf@gnu.org> Thread-Index: Ac0909qwl0PDSdo/SQC41YG8QFisoAABP5ew X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60483 Archived-At: > > > On Windows, at least with the default setup, selecting a > > > frame also grabs focus. So these two functions do the same. > > > > No, definitely not with my (non-default) setup. Selecting > > a frame does not give it the input focus. > > Not even in "emacs -Q"? IOW, is this an Emacs setup issue, or a > Windows setup issue? I don't know what the test recipe would be. I don't know what it is for my setup either. All I know is that I have had to add calls to `select-frame-set-input-focus', and that `select-frame' did not do the trick. And I don't say that `select-frame' _never_ gives focus to the frame it selects. I'm saying only that in some situations I have had to use `s-f-s-i-p'. Typically, IIRC, this has been necessary when using the minibuffer, and, e.g. a key in the minibuffer map caused a new frame to be created or (correctly) caused some action to take place in another frame. In such situations I need to call `s-f-s-i-f' to the standalone minibuffer frame in order to continue with minibuffer input (e.g. completion). `select-frame' does not cut the mustard here. > > Hence my need to call `select-frame-set-input-focus' in a > > few places. And, I would guess, hence the existence of two > > different functions: `select-frame' and `s-f-s-i-f'. > > My guess is that they exist because on X the situation is quite > different: X defaults (or at least used to) to "pointer to focus", not > "click to focus". Could be. But as I say, `select-frame' did not seem to do the job, which is why I moved on to `s-f-s-i-f', which did. > > I'm no expert on any of this, obviously. > > Unfortunately, neither am I. I just read a bit about this for the > last few days, because apparently no one else wanted to work on bug > #11513. Thank you for your efforts.