From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#2025: 23.0.60; emacsclient: frame does not get focus on opening Date: Wed, 05 Oct 2011 10:31:31 +0200 Message-ID: <87botvltzw.fsf@escher.home> References: <87r62s20po.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317803534 9605 80.91.229.12 (5 Oct 2011 08:32:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2011 08:32:14 +0000 (UTC) Cc: 2025@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 10:32:10 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBMta-0004BL-CM for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 10:32:06 +0200 Original-Received: from localhost ([::1]:42424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBMtZ-0003VS-Av for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Oct 2011 04:32:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBMtW-0003U9-4n for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 04:32:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBMtU-0000U2-Rx for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 04:32:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBMtU-0000Ty-QN for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 04:32:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBMtV-0004Rv-OE for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2011 04:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 08:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2025 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 2025-submit@debbugs.gnu.org id=B2025.131780350417078 (code B ref 2025); Wed, 05 Oct 2011 08:32:01 +0000 Original-Received: (at 2025) by debbugs.gnu.org; 5 Oct 2011 08:31:44 +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 1RBMtD-0004RN-Di for submit@debbugs.gnu.org; Wed, 05 Oct 2011 04:31:44 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RBMtB-0004RB-F4 for 2025@debbugs.gnu.org; Wed, 05 Oct 2011 04:31:42 -0400 Original-Received: (qmail invoked by alias); 05 Oct 2011 08:31:33 -0000 Original-Received: from i59F558AF.versanet.de (EHLO escher.home) [89.245.88.175] by mail.gmx.net (mp013) with SMTP; 05 Oct 2011 10:31:33 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/0mPVGyM70QGDSvzhddcOH5H42dEMI3oT2f3HVK0 zwC//CId2fl3Bs Original-Received: by escher.home (Postfix, from userid 1000) id 01C5425F3A; Wed, 5 Oct 2011 10:31:31 +0200 (CEST) In-Reply-To: (Glenn Morris's message of "Wed, 05 Oct 2011 00:48:00 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 05 Oct 2011 04:32:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52205 Archived-At: On Wed, 05 Oct 2011 00:48:00 -0400 Glenn Morris wrote: > Stephen Berman wrote: > >> If I use server-start, then frames opened by `emacsclient -c' do not >> automatically get desktop focus: >> >> emacs -Q -f server-start >> emacsclient -c >> => The frame that appears does not have desktop focus (rather, the xterm >> window still has focus). > > I cannot reproduce this. Do you still see it? Yes; however, ... > (I know nothing about this; doesn't the window manager have some control > over it?) Apparently, though I didn't think to test this in my OP. But now I see this problem with KWin (currently KDE 4.7.1, on openSUSE 11.4), starting Emacs either from Konsole or Xterm, but not with IceWM (I don't have Gnome on this system). Also, my recipe was a bit imprecise: either the first line should end with `&' or you have to background the process to invoke emacsclient. Moreover, I see a peculiar difference between Konsole and Xterm on KWin: Invoking `emacs -Q -f server-start' (with or without '&') from Konsole opens a frame which gets focus, but when invoked from Xterm, this frame, too, does not get focus. Whereas with both terminal emulators, frames opened by `emacsclient -c' fail to get focus. Again, this is after initially starting Emacs with server-start; as my OP noted, starting with --daemon, subsequent invocations of `emacsclient -c' do open a frame with focus -- at least when invoked from Konsole: with Xterm there seems to be some kind of race condition, because sometimes the frame gets focus, sometimes it doesn't. Anyway, it looks like this may not be a problem that can be solved by Emacs, so I suppose this bug can be closed. Steve Berman