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: Mon, 10 Mar 2014 18:27:24 +0200 Message-ID: <83y50inhn7.fsf@gnu.org> References: <83pplwq0s2.fsf@gnu.org> <83ob1gpw98.fsf@gnu.org> <9cc39d8d-e5ae-488b-9ba6-78dd71a2257f@googlegroups.com> <913ee34a-f81c-408f-afe4-6944a9c56430@googlegroups.com> <10020dec-82f2-41de-93d3-06d8984dcfba@googlegroups.com> <87pplv6omp.fsf@web.de> <831tyapvp6.fsf@gnu.org> <87wqg28ykt.fsf@web.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1394468881 16763 80.91.229.3 (10 Mar 2014 16:28:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2014 16:28:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 17:28:09 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 1WN33a-00079E-0l for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2014 17:28:02 +0100 Original-Received: from localhost ([::1]:49855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN33Z-0001wR-Bf for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2014 12:28:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN33K-0001t0-6u for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 12:27:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN33E-0005k6-CY for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 12:27:46 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:54659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN33E-0005jx-4S for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 12:27:40 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N2800J00B0ZUG00@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 18:30:59 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2800A0IB7N9HA0@mtaout29.012.net.il> for help-gnu-emacs@gnu.org; Mon, 10 Mar 2014 18:30:59 +0200 (IST) In-reply-to: <87wqg28ykt.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.185 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:96399 Archived-At: > From: Michael Heerdegen > Cc: Eli Zaretskii > Date: Mon, 10 Mar 2014 05:30:42 +0100 > > It seems that (selected-frame) is intended to "mean" the frame focused > when we hit C-x #. But note that evaluating the argument (server-done) > has the side effect of deleting that frame. Under the right > circumstances, the selected frame now can be any frame, including the > other emacsclient frame. In this case, `next-buffer' will be set and > the newly selected frame will be focused by the recursive call of > `server-switch-buffer'. AFAIK, which frame becomes selected in this situation is determined by the window manager.