From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: How to determine (from Elisp) whether the Emacs frame has focus? Date: Mon, 16 Nov 2015 15:08:46 +0100 Message-ID: <87vb92xci9.fsf@members.fsf.org> References: <87fv09o9p5.fsf@mbork.pl> <83twopdmz4.fsf@gnu.org> <83d1vcexdp.fsf@gnu.org> <871tbsbw01.fsf@mbork.pl> <831tbsem1g.fsf@gnu.org> <876113wvv3.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447713385 31503 80.91.229.3 (16 Nov 2015 22:36:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 22:36:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 16 23:36:19 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 1ZySNk-0002eY-2J for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 23:36:16 +0100 Original-Received: from localhost ([::1]:51052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZySNj-0001lu-CG for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 17:36:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyKSl-0003u1-OU for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 09:09:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyKSi-0003CP-CD for help-gnu-emacs@gnu.org; Mon, 16 Nov 2015 09:08:55 -0500 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:24791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyKSi-0003CB-6V; Mon, 16 Nov 2015 09:08:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroGAB/iSVakD4Xx/2dsb2JhbABeKAOCPoIUq10BAQEGlGyGEAKCBgEBAQEBAYELQRIBg2EBAQR5EAgDDhMlDwEESROILro2AQsBIIYNhUWJOQWWSJY0kzhjhAU9NINHggQBAQE Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 16 Nov 2015 15:08:35 +0100 In-Reply-To: <876113wvv3.fsf@mbork.pl> (Marcin Borkowski's message of "Sun, 15 Nov 2015 08:45:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 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:108097 Archived-At: Marcin Borkowski writes: > Of course. However, what I really mean is not exactly > (current-buffer), but "the buffer I'm working in now". This means that > if e.g. current-buffer is the minibuffer (as might be the case during > search or M-x or whatever), I would prefer /the buffer I'll get back > to when I finish doing whatever I'm doing in the minibuffer/, I think you want (window-buffer (minibuffer-selected-window)) -- Nico.