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 19:44:19 +0300 Message-ID: <831um32azg.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1338309896 28976 80.91.229.3 (29 May 2012 16:44:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 16:44:56 +0000 (UTC) Cc: 11566@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 29 18:44:55 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 1SZPXT-0001IB-71 for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 18:44:55 +0200 Original-Received: from localhost ([::1]:42761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZPXS-0005l6-Vi for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 12:44:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZPXK-0005NK-2y for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 12:44:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZPXD-0006m2-PX for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 12:44:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZPXD-0006lm-Mb for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 12:44:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SZPYY-0000n4-Dk for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 12:46: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 16:46: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.13383099493019 (code B ref 11566); Tue, 29 May 2012 16:46:02 +0000 Original-Received: (at 11566) by debbugs.gnu.org; 29 May 2012 16:45:49 +0000 Original-Received: from localhost ([127.0.0.1]:48652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZPYK-0000me-Pi for submit@debbugs.gnu.org; Tue, 29 May 2012 12:45:49 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:44212) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZPYH-0000mQ-Qj for 11566@debbugs.gnu.org; Tue, 29 May 2012 12:45:46 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M4S00300M0D4300@a-mtaout20.012.net.il> for 11566@debbugs.gnu.org; Tue, 29 May 2012 19:44:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M4S0021PMHPUD80@a-mtaout20.012.net.il>; Tue, 29 May 2012 19:44:13 +0300 (IDT) In-reply-to: <9A9A32EAE9D64B438EDA74E1F3F488FE@us.oracle.com> 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:60469 Archived-At: > From: "Drew Adams" > Cc: , <11566@debbugs.gnu.org> > Date: Tue, 29 May 2012 09:10:15 -0700 > > > > > (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. > > > > No, it keeps focus in new-frame, but makes it so the input you type at > > new-frame gets sent to old-frame. > > Hm. Maybe I'm unclear about "focus". To me, "focus" was about input focus: the > focused frame is the one that accepts/receives keyboard input. Well, yes, but redirect-frame-focus explicitly parts them, AFAIU. > In something like `select-frame-set-input-focus', my interpretation was that > frame selection was related to the border highlighting and setting input focus > was related to receiving keyboard input. AFAIK, `select-frame' does the former, > but `select-frame-set-input-focus' is needed to get the latter. On Windows, at least with the default setup, selecting a frame also grabs focus. So these two functions do the same. > > Thus, this: > > > > > (But new-frame has its title and border highlighted as if > > > it had the focus. Somehow there is a disconnect between the two. > > > > is normal and expected behavior (AFAIU). > > Expected from `redirect-frame-focus', I guess you mean. Yes, of course. > So IIUC, `select-frame-set-input-focus' does `select-frame' plus > `redirect-frame-focus'? No, it just raises the frame after selecting it and makes sure it has focus (which in most situations it will have by virtue of being raised).