From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Edwards 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 12:04:52 -0500 Message-ID: References: <83eh34bg7v.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1392483973 11577 80.91.229.3 (15 Feb 2014 17:06:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2014 17:06:13 +0000 (UTC) Cc: 16761@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 15 18:06:20 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 1WEih0-0004KA-Cd for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Feb 2014 18:06:18 +0100 Original-Received: from localhost ([::1]:57579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEigz-0000oR-TB for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Feb 2014 12:06:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEigq-0000nL-Vo for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 12:06:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEigl-0004Rx-0y for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 12:06:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEigk-0004Rt-Tb for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 12:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WEigj-0006Q6-V0 for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 12:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Steven Edwards Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Feb 2014 17:06: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.139248390324594 (code B ref 16761); Sat, 15 Feb 2014 17:06:01 +0000 Original-Received: (at 16761) by debbugs.gnu.org; 15 Feb 2014 17:05:03 +0000 Original-Received: from localhost ([127.0.0.1]:53651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEifm-0006OZ-D6 for submit@debbugs.gnu.org; Sat, 15 Feb 2014 12:05:02 -0500 Original-Received: from mail-lb0-f182.google.com ([209.85.217.182]:46434) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEifi-0006O1-W9 for 16761@debbugs.gnu.org; Sat, 15 Feb 2014 12:04:59 -0500 Original-Received: by mail-lb0-f182.google.com with SMTP id w7so10412997lbi.27 for <16761@debbugs.gnu.org>; Sat, 15 Feb 2014 09:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eYztQIJvU9+H2k6S5aUAHpvx7i11HWPkfwSHaZL3Zh0=; b=gysQo2PgEsQ2jlM06Ke7Z8DSIEimKJXTH6ETuci+iML5rpMf0Bk2RXdX1dREBJhdg9 2L3f88+zZJOFkx6ea2RGtZnyWHJsokr6g7GCw/GEmL0riX2mAvWENjfinudTKOdJjR8j e42O64M7baJ6syi6ZcNJGBhE6F66ZT8mKJWHPllj89+M0mndKvL31yi4MFVY5uRPHWIS KAsPz79CV9DD/Csw790WJeyD9EVPoisKfqIMk06yuSQMkHd6CHmwJM6GXRPbxtTnP675 ZDBoTdfBCcdsw/5oJIKXlrhUcRZkNDhnK0h2rTxwOWkN9+56cBEezBgazbYjG03I4vAu 3d/w== X-Received: by 10.112.170.234 with SMTP id ap10mr9807287lbc.23.1392483892734; Sat, 15 Feb 2014 09:04:52 -0800 (PST) Original-Received: by 10.112.142.233 with HTTP; Sat, 15 Feb 2014 09:04:52 -0800 (PST) In-Reply-To: <83eh34bg7v.fsf@gnu.org> 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:85625 Archived-At: > You don't say what you expect to happen. Do you expect a focus-in and > focus-out event to be generated for terminal frames? Or do you expect > (or need) something else? I need a focus-in event to occur when switching to a terminal frame; the code I provided was simply to demonstrate and focus on the error. The real code: --- (defun rand/swap-theme (from to) (disable-theme from) (enable-theme to)) (defun rand/choose-theme () (cond ((memq window-system '(x w32 ns)) (rand/swap-theme 'Custom 'assemblage)) (t (rand/swap-theme 'assemblage 'Custom)))) (add-hook 'focus-in-hook 'rand/choose-theme) --- The goal is to switch to a terminal-friendly theme when I'm in tmux and a GUI friendly theme when I'm in a graphical environment. The problem seems to be that the hooks in focus-in-hooks aren't being executed when I switch to a terminal frame. Best, Steven