From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.bugs Subject: bug#1980: 23.0.60; emacs switches focus to graphical frame when server-edit exits terminal frame Date: Sat, 4 Dec 2010 16:56:49 +0100 Message-ID: <20101204155649.GA30881@shi.workgroup> References: <87fxh2959k.fsf@cyd.mit.edu> <20090325205143.GK4615@pit.ID-43118.user.dfncis.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291479334 22584 80.91.229.12 (4 Dec 2010 16:15:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Dec 2010 16:15:34 +0000 (UTC) Cc: Chong Yidong To: 1980@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 04 17:15:26 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1POulg-0008BX-TJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Dec 2010 17:15:25 +0100 Original-Received: from localhost ([127.0.0.1]:48292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POulg-0003RA-3f for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Dec 2010 11:15:24 -0500 Original-Received: from [140.186.70.92] (port=59545 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POulZ-0003Ow-9r for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2010 11:15:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POulX-0002ec-HZ for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2010 11:15:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POulX-0002eL-G2 for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2010 11:15:15 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1POuP4-0004T2-Gg; Sat, 04 Dec 2010 10:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregor Zattler Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2010 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1980 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 1980-submit@debbugs.gnu.org id=B1980.129147789717143 (code B ref 1980); Sat, 04 Dec 2010 15:52:02 +0000 Original-Received: (at 1980) by debbugs.gnu.org; 4 Dec 2010 15:51:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1POuOf-0004SS-9i for submit@debbugs.gnu.org; Sat, 04 Dec 2010 10:51:37 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1POuOc-0004SE-V0 for 1980@debbugs.gnu.org; Sat, 04 Dec 2010 10:51:36 -0500 Original-Received: (qmail invoked by alias); 04 Dec 2010 15:57:20 -0000 Original-Received: from p54946C69.dip.t-dialin.net (EHLO shi.workgroup) [84.148.108.105] by mail.gmx.net (mp063) with SMTP; 04 Dec 2010 16:57:20 +0100 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX1+B+5NpP/qBNxlZur9DkZKpUlOSrZbKxsqfywDQQ0 fteMk5EibfAera Original-Received: from grfz by shi.workgroup with local (Exim 4.72) (envelope-from ) id 1POuU1-0008Nt-Dk; Sat, 04 Dec 2010 16:57:09 +0100 Content-Disposition: inline In-Reply-To: <20090325205143.GK4615@pit.ID-43118.user.dfncis.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 04 Dec 2010 10:52:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42146 Archived-At: Hi Chong, Emacs developers, readers of old bug reports, * Gregor Zattler [25. Mar. 2009]: > * Chong Yidong [24. Mär. 2009]: >>> When using emacs 23 in daemon mode some graphical emacs frame gets >>> fokus if an editing session on a terminal window which was initiated >>> via "emacsclient -t ..." is finished with C-x # (server-edit). In >>> order to continue work in the terminal window I have to manually >>> switch back to the terminal window. >> >> Sorry for the late response. I haven't been able to reproduce this bug >> with metacity---closing an `emacsclient -t' client keeps the xterm >> window in focus. This problem may be a quirk of the window managers you >> tried (xfce4 and icwwm-lite); I am not sure what Emacs can do >> differently to try to mitigate this. > > O.k. I'll test it with other window managers. ATM I don't have > time to do this but I will report back when I've done it. I did some tests and research today: This is not a WM issue, it's reproducible without any WM. Meanwhile this issue is discussed in bug 7269 as focus follows mouse (actually: mouse follows frame). The workaround mentioned by Anders Kaseorg in the discussion of the aforementioned bug is to M-x customize-save-variable focus-follows-mouse n. This works for me. But I think the default value of this variable is surprising and it's documentation does not explain that this actually leads to mouse movements. Ciao, Gregor