From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: closing emacsclient always focuses another emacs window Date: Sat, 08 Mar 2014 19:57:15 +0200 Message-ID: <83fvmspo90.fsf@gnu.org> References: <83pplwq0s2.fsf@gnu.org> <83ob1gpw98.fsf@gnu.org> <87wqg4y46k.fsf@web.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1394301459 22693 80.91.229.3 (8 Mar 2014 17:57:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2014 17:57:39 +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 Mar 08 18:57:48 2014 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 1WMLVL-0000Am-TC for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2014 18:57:48 +0100 Original-Received: from localhost ([::1]:41395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMLVL-00075X-GY for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2014 12:57:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMLV3-00075A-CH for help-gnu-emacs@gnu.org; Sat, 08 Mar 2014 12:57:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMLUw-0001fa-2y for help-gnu-emacs@gnu.org; Sat, 08 Mar 2014 12:57:29 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:56186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMLUv-0001fU-RY for help-gnu-emacs@gnu.org; Sat, 08 Mar 2014 12:57:22 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N2400L00PCT2M00@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Sat, 08 Mar 2014 19:55:01 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2400HU4PRPPJ50@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Sat, 08 Mar 2014 19:55:01 +0200 (IST) In-reply-to: <87wqg4y46k.fsf@web.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 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:96316 Archived-At: > From: Michael Heerdegen > Date: Sat, 08 Mar 2014 18:45:55 +0100 > > As far as I understood, the OP wants that the X window that had focus > before emacsclient was called gets focus back, and not any Emacs frame. > I.e., Emacs would "give up" its focus for the benefit of the last > focused X window. Without killing Emacs, of course. That's my understanding as well. > I don't think that this is possible, but I agree that it could be a > desirable behavior. As long as Emacs does not forcibly raises one of its other frames (on my system and with Emacs 23.4, it doesn't), which other window gets focus is up to the window manager, AFAIU. FWIW, I see the desired behavior on my system, so it's not impossible.