From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: How to determine (from Elisp) whether the Emacs frame has focus? Date: Sat, 14 Nov 2015 11:45:51 +0100 Message-ID: <20151114104551.GB27420@tuxteam.de> References: <87fv09o9p5.fsf@mbork.pl> <20151114073041.GA22234@tuxteam.de> <874mgpas2e.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1447519797 4928 80.91.229.3 (14 Nov 2015 16:49:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2015 16:49:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 14 17:49:57 2015 Return-path: Envelope-to: geh-help-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 1Zxe1U-0008Sw-NG for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2015 17:49:56 +0100 Original-Received: from localhost ([::1]:35783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxe1T-0006Ny-WF for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2015 11:49:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxYsv-0002Vb-GV for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 06:20:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxYsp-00006W-NN for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 06:20:45 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36382 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxYsp-000061-GG for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 06:20:39 -0500 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1ZxYLA-0007El-00 for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 11:45:52 +0100 In-Reply-To: <874mgpas2e.fsf@mbork.pl> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108066 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Nov 14, 2015 at 09:44:25AM +0100, Marcin Borkowski wrote: [...] > That I know, I did my homework. Still, evaluating Sorry, I didn't want to imply otherwise -- I just misunderstood your problem. > (progn (sit-for 3) (selected-frame)) > > and immediately going to, say, Evince, does not make Emacs say "nil", as > I (somehow) expected. Got it. Yes, it seems you'll have to hook on focus events, then. > > Thanks, Jon for prompting me to read manuals and learn something :) > > That's usually good;-). :-) regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlZHEN8ACgkQBcgs9XrR2kZUXQCfX5cZuGFY655hPP3dYc4togk/ TEUAn12VE7uLjYIWYvqa2G+bqv5EP3c9 =3fVc -----END PGP SIGNATURE-----