From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nyc4bos@aol.com Newsgroups: gmane.emacs.bugs Subject: bug#7658: 24.0.50; emacsclient not raising frame Date: Wed, 06 Jul 2011 19:03:24 -0400 Message-ID: References: <46y67pl5lx.fsf@aol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309993709 5932 80.91.229.12 (6 Jul 2011 23:08:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 23:08:29 +0000 (UTC) Cc: 7658@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 07 01:08:25 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 1QebCi-0001MP-5O for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jul 2011 01:08:24 +0200 Original-Received: from localhost ([::1]:47782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QebCh-0005wZ-8j for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2011 19:08:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QebCP-0005w7-J4 for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 19:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QebCN-0007E4-Hy for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 19:08:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QebCN-0007Ds-9D for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 19:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QebCL-0000a9-Vy; Wed, 06 Jul 2011 19:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: nyc4bos@aol.com Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2011 23:08:01 +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.13099936342174 (code B ref 7658); Wed, 06 Jul 2011 23:08:01 +0000 Original-Received: (at 7658) by debbugs.gnu.org; 6 Jul 2011 23:07:14 +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 1QebBa-0000Z1-Go for submit@debbugs.gnu.org; Wed, 06 Jul 2011 19:07:14 -0400 Original-Received: from imr-mb01.mx.aol.com ([64.12.207.164]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QebBX-0000Yn-Oj for 7658@debbugs.gnu.org; Wed, 06 Jul 2011 19:07:12 -0400 Original-Received: from mtaout-da04.r1000.mx.aol.com (mtaout-da04.r1000.mx.aol.com [172.29.51.132]) by imr-mb01.mx.aol.com (8.14.1/8.14.1) with ESMTP id p66N705s007012; Wed, 6 Jul 2011 19:07:00 -0400 Original-Received: from RPLPUBBAS07 (unknown [63.117.244.126]) by mtaout-da04.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPA id 67AC9E0000FA; Wed, 6 Jul 2011 19:07:00 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Mon, 4 Jul 2011 13:28:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:439670080:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d33844e14ea9430ce X-AOL-IP: 63.117.244.126 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 06 Jul 2011 19:08:01 -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:48133 Archived-At: Juanma Barranquero writes: > 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). No, both emacs and emacsclient are invoked on the same Windows computer. > > 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. Thanks for this information. A virtual machine is not involved. The Emacs tile (at the bottom of the screen) turns orange for a few seconds but the Emacs instance (frame) does not come to the forefront if it is already deiconified. However, if it is iconified, emacsclient (calling `select-frame-by-name') does deiconify it, as expected. So the problem appears to be when it is deiconified and then calling `select-frame-by-name'. Thanks. > > =C2=A0 =C2=A0 Juanma