From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Random832 Newsgroups: gmane.emacs.help Subject: Re: How to determine (from Elisp) whether the Emacs frame has focus? Date: Sat, 14 Nov 2015 03:36:03 -0500 Message-ID: References: <87fv09o9p5.fsf@mbork.pl> <83twopdmz4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447492585 27996 80.91.229.3 (14 Nov 2015 09:16:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2015 09:16:25 +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 10:16:16 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 1ZxWwE-0008G5-F9 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2015 10:16:02 +0100 Original-Received: from localhost ([::1]:32892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxWwD-0007ZP-PY for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2015 04:16:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxWJw-00085w-GL for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 03:36:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxWJt-0002mb-7E for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 03:36:28 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:36124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxWJt-0002mX-08 for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 03:36:25 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZxWJr-0000jH-1m for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 09:36:23 +0100 Original-Received: from c-68-39-146-59.hsd1.in.comcast.net ([68.39.146.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Nov 2015 09:36:23 +0100 Original-Received: from random832 by c-68-39-146-59.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Nov 2015 09:36:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 11 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:5ZInkIwL1aHWd2TzwuE21B1MMxA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:108057 Archived-At: Eli Zaretskii writes: > I'm probably missing something very important, because I don't > understand what you are looking for. The selected frame by definition > has focus, at least AFAIK. What am I missing? Well that may be true who never leave their Emacs instance, but for the rest of us some non-Emacs application might have focus instead. (Also I suspect by "selected" he meant a frame the programmer "selects" to pass in to e.g. a function that answers the question, rather than selected-frame.)