From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#7658: 24.0.50; emacsclient not raising frame Date: Mon, 4 Jul 2011 13:28:59 +0200 Message-ID: References: <46y67pl5lx.fsf@aol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309779709 14191 80.91.229.12 (4 Jul 2011 11:41:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 11:41:49 +0000 (UTC) Cc: 7658@debbugs.gnu.org To: nyc4bos@aol.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 13:41:44 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 1QdhX5-0002qM-9L for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 13:41:43 +0200 Original-Received: from localhost ([::1]:34149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdhX1-000149-Tc for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 07:41:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdhLt-0006hJ-C0 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 07:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdhLq-0004gv-8I for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 07:30:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdhLp-0004fT-Kc for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 07:30:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdhLn-0002Eo-Vp; Mon, 04 Jul 2011 07:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2011 11:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7658-submit@debbugs.gnu.org id=B7658.13097789878544 (code B ref 7658); Mon, 04 Jul 2011 11:30:03 +0000 Original-Received: (at 7658) by debbugs.gnu.org; 4 Jul 2011 11:29:47 +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 1QdhLW-0002Dk-R7 for submit@debbugs.gnu.org; Mon, 04 Jul 2011 07:29:47 -0400 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdhLV-0002DX-BB for 7658@debbugs.gnu.org; Mon, 04 Jul 2011 07:29:45 -0400 Original-Received: by pvh18 with SMTP id 18so4800368pvh.3 for <7658@debbugs.gnu.org>; Mon, 04 Jul 2011 04:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=aqznnSW0yh3vYr0NlgivNZrDA5LPN71Mleo1CStFoI8=; b=vdffjtLTRAP9D6XM5LwkU/pMOz/nn+0M+S9zRTMrKaWrdi5KzhoThklIdVD6lUkw1m QT/N76G4G3xTIrK4wE+5drKj+SfM4/VdLs+tUt/bUBVa9dk1c216Ri8M7+yAj/PnlZJ+ 3KI+SXPxspyYOQrrOSLsPEXkchMIvFTQkhCeE= Original-Received: by 10.142.186.21 with SMTP id j21mr2733200wff.449.1309778979150; Mon, 04 Jul 2011 04:29:39 -0700 (PDT) Original-Received: by 10.142.48.6 with HTTP; Mon, 4 Jul 2011 04:28:59 -0700 (PDT) In-Reply-To: <46y67pl5lx.fsf@aol.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 04 Jul 2011 07:30:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47928 Archived-At: On Thu, Dec 16, 2010 at 23:23, wrote: > From the command line I can see: > > emacs-24.0.50\bin\emacsclient.exe: connected to remote socket at > xxx.xx.x.xxx > > So I can see that it made the connection (I removed the real IP adress) > but the frame is not raised. IIUC, the connection is remote, i.e., you're invoking emacsclient in one computer, and emacs is running in another one (both Windows, I suppose). In that case, there's nothing we can do. The trend on newer Windows is to give the user, not the programs, the control of the focus, so programs requesting it do not normally get it. However, a program that already has the focus can pass the privilege, so to speak, to another one. When you run emacsclient, it has the focus. So, it tries to detect a running Emacs in the same computer with the right pid, and if it finds it, it calls a Windows API, AllowSetForegroundWindow, to pass it the focus. But obviously this does not work for a program in a remote computer; not even if one of the computers is just a virtual machine running in the other one. =C2=A0 =C2=A0 Juanma