From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11566: 24.0.97; `read-from-minibuffer': focus to standalone minibuffer frame? Date: Tue, 29 May 2012 18:40:15 +0300 Message-ID: <83aa0r2dy8.fsf@gnu.org> References: <6A40227DCFBF427491B710A473E45744@us.oracle.com> <4FC22A8D.6040801@gmx.at> <8D43F91B0096402A9BCA59FE13513358@us.oracle.com> <4FC49A24.7000403@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1338306051 26698 80.91.229.3 (29 May 2012 15:40:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 15:40:51 +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 17:40:47 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 1SZOXO-0000Fn-3N for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 17:40:46 +0200 Original-Received: from localhost ([::1]:38201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZOXN-0000Vt-TL for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 11:40:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZOXK-0000Vn-IY for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 11:40:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZOXH-0002uH-J3 for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 11:40:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZOXH-0002u3-Fs for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 11:40:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SZOYc-0007hR-Fu for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 11:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 May 2012 15:42:02 +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.133830611929588 (code B ref 11566); Tue, 29 May 2012 15:42:02 +0000 Original-Received: (at 11566) by debbugs.gnu.org; 29 May 2012 15:41:59 +0000 Original-Received: from localhost ([127.0.0.1]:48557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZOYY-0007hB-N5 for submit@debbugs.gnu.org; Tue, 29 May 2012 11:41:59 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:57779) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZOYW-0007gx-1A for 11566@debbugs.gnu.org; Tue, 29 May 2012 11:41:57 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M4S00200JHXJP00@a-mtaout20.012.net.il> for 11566@debbugs.gnu.org; Tue, 29 May 2012 18:40:18 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M4S001T2JJ5LBC0@a-mtaout20.012.net.il>; Tue, 29 May 2012 18:40:18 +0300 (IDT) In-reply-to: <4FC49A24.7000403@gmx.at> X-012-Sender: halo1@inter.net.il 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:60460 Archived-At: > Date: Tue, 29 May 2012 11:43:00 +0200 > From: martin rudalics > Cc: 11566@debbugs.gnu.org > > > > 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. > > so Windows OT1H handles key input passed to a frame that is not in the > foreground Careful with your terminology: at least on MS-Windows, a "foreground" frame is the frame that has focus and receives input. So what you say cannot happen by definition. In the scenario you cited above, the frame is lowered (i.e. brought behind, or "below" in Z-order, the other frames/windows), but it is still the foreground frame and therefore it still has focus and receives keyboard input. So it's unclear to me what exactly is the problem in the OT1H scenario. > and OTOH doesn't pass key input to another frame even if > explicitly asked to do so. I have just fixed a similar problem in bug #11513. I suggest that Drew wait until the corresponding binaries are available, and see whether this problem is solved as well. The problem in bug #11513 was that a frame that was already a foreground frame was not raised. Maybe something similar happens here. > >> > Shouldn't [`read-from-minibuffer'] have the responsibility > >> > here to give the minibuffer frame the focus? > >> > >> Yes. But the window manager must not intercept it. > > > > But that's what seems to be happening (intercept or interrupt or some such). > > That's what we have to find out. I don't think this is what happens here. To raise a frame, Emacs sends a message with a private code to itself, so I doubt that the window manager could intercept or interrupt it, even if it wanted to. > 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. According to my reading, it just highlights the frame that had focus redirected to it.