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 07:12:26 -0700 Message-ID: <96A3CCDD100E49C6ACF2739484C9239A@us.oracle.com> References: <6A40227DCFBF427491B710A473E45744@us.oracle.com> <4FC22A8D.6040801@gmx.at> <8D43F91B0096402A9BCA59FE13513358@us.oracle.com> <4FC49A24.7000403@gmx.at> 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 1338300834 12940 80.91.229.3 (29 May 2012 14:13:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 14:13:54 +0000 (UTC) Cc: 11566@debbugs.gnu.org To: "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 29 16:13:53 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 1SZNBI-00053N-Pw for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 16:13:53 +0200 Original-Received: from localhost ([::1]:36913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZNBI-0004UO-8V for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 10:13:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZNB6-0004UD-Qc for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 10:13:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZNB4-0004EA-RB for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 10:13:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZNB4-0004Dz-NO for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 10:13:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SZNCP-0005fX-Of for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 10:15: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 14:15: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.133830085921733 (code B ref 11566); Tue, 29 May 2012 14:15:01 +0000 Original-Received: (at 11566) by debbugs.gnu.org; 29 May 2012 14:14:19 +0000 Original-Received: from localhost ([127.0.0.1]:48411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZNBi-0005eT-75 for submit@debbugs.gnu.org; Tue, 29 May 2012 10:14:19 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:22887) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZNBf-0005eF-MC for 11566@debbugs.gnu.org; Tue, 29 May 2012 10:14:16 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4TECivE012398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 29 May 2012 14:12:45 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4TECh2M025750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 May 2012 14:12:44 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4TEChvP007390; Tue, 29 May 2012 09:12:43 -0500 Original-Received: from dradamslap1 (/10.159.177.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 29 May 2012 07:12:43 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4FC49A24.7000403@gmx.at> Thread-Index: Ac09f3I3qqJcnmrkQAe6WfnNW02C0QAI1M0w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:60459 Archived-At: > You didn't tell us whether it works for you "in general". If you work > with two frames for "some time" does `redirect-frame-focus' what it is > supposed to do? If it doesn't we have a strange situation > where, citing from Ito's comment in bug#11513, Sorry, I don't know what you mean. I have been using multiple frames for a long time, yes. But I do not directly call `redirect-frame-focus'. I do call `select-frame-set-input-focus' in various places. Does that mean that `r-f-f' works for me in general? I really have no idea. > > > When I run lower-frame function in Emacs frame > > > interactively, Emacs frame is brought behind of > > > other application window(s) but has focus. > > > Key inputs are passed to lowered frame. I tested 4 > > > Windows PC, and all PCs show the same behavior. Yes, I was the first to confirm what was reported in bug #11513. > so Windows OT1H handles key input passed to a frame that is not in the > foreground and OTOH doesn't pass key input to another frame even if > explicitly asked to do so. Apparently so. (That a window manager can accept input passed to a frame that is not on top in the stacking order is not exceptional. That is (was, at least) true for many w. mgrs on UNIX, where you could even change the input focus without changing the stacking order ("foreground") just by moving the mouse over a lower frame.) > >> Try the sit-for approach. Try to make a standalone example like > >> (let ((old-frame ... some existing frame)) > >> (make-frame) > >> (redirect-frame-focus old-frame)) > >> and see whether it fails giving focus to `old-frame'. > > > > Still not sure what you mean by using `sit-for' > > (how/where?). But I tried that simple example, and yes, > > it systematically fails to give focus to `old-frame'. > > The newly created frame keeps the focus - every time. > > I suppose my example was just silly. Maybe you should try again with > > (let ((old-frame (selected-frame)) > (new-frame (make-frame))) > (redirect-frame-focus new-frame old-frame)) That puts (keeps) the input focus in old-frame. So it seems to work as it should. (But new-frame has its title and border highlighted as if it had the focus. Somehow there is a disconnect between the two. But maybe such highlighting is intended only to indicate the topmost frame? Dunno.) > I don't know anything about `redirect-frame-focus' and can't test it > reliably here because I'm using special autoraise-frame settings which > likely interfere with any such focus redirection. I know less that you, but I can perhaps test it if you suggest what to test.