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#16761: 24.3.50; focus-in-hook not running accurately when frame switches to terminal Date: Sat, 15 Feb 2014 22:39:12 +0200 Message-ID: <837g8waz67.fsf@gnu.org> References: <83eh34bg7v.fsf@gnu.org> <838utcb8n0.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392496810 14827 80.91.229.3 (15 Feb 2014 20:40:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2014 20:40:10 +0000 (UTC) Cc: 16761@debbugs.gnu.org To: Steven Edwards Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 15 21:40:17 2014 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 1WEm24-0001ub-Dt for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Feb 2014 21:40:16 +0100 Original-Received: from localhost ([::1]:58357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEm23-00056L-MR for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Feb 2014 15:40:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEm1v-0004zR-Oq for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 15:40:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEm1q-0004rO-KC for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 15:40:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEm1q-0004qs-H5 for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 15:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WEm1p-0003uA-RC for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 15:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Feb 2014 20:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16761 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16761-submit@debbugs.gnu.org id=B16761.139249676214952 (code B ref 16761); Sat, 15 Feb 2014 20:40:01 +0000 Original-Received: (at 16761) by debbugs.gnu.org; 15 Feb 2014 20:39:22 +0000 Original-Received: from localhost ([127.0.0.1]:53799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEm1C-0003t6-0m for submit@debbugs.gnu.org; Sat, 15 Feb 2014 15:39:22 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:56918) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEm19-0003sn-7J for 16761@debbugs.gnu.org; Sat, 15 Feb 2014 15:39:20 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N1200M001339700@a-mtaout21.012.net.il> for 16761@debbugs.gnu.org; Sat, 15 Feb 2014 22:39:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1200MGY1DC3B40@a-mtaout21.012.net.il>; Sat, 15 Feb 2014 22:39:12 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:85636 Archived-At: > Date: Sat, 15 Feb 2014 12:23:56 -0500 > From: Steven Edwards > Cc: 16761@debbugs.gnu.org, jan.h.d@swipnet.se > > On 2/15/14, Eli Zaretskii wrote: > > How can Emacs get a focus-in event for the terminal frame, when the > > event is sent by X? Jan, is this possible with X? > > Interesting. I wasn't aware those events were sent by X. > > Out of curiosity, then, how does Emacs produce the message indicating > a terminal frame after I return to an X frame? It seems like it's > blocking somewhere. I think the event is generated by X when you switch to a GUI frame, and the terminal frame is just indicated as the previous one (since Emacs does know about its terminal frames). But I may be mistaken, so I prefer to hear from Jan on this.