GNU bug report logs -
#7658
24.0.50; emacsclient not raising frame
Previous Next
Reported by: nyc4bos <at> aol.com
Date: Thu, 16 Dec 2010 22:18:03 UTC
Severity: minor
Merged with 8885
Found in version 24.0.50
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 7658 <at> debbugs.gnu.org (full text, mbox):
On Thu, Dec 16, 2010 at 23:23, <nyc4bos <at> aol.com> 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.
Juanma
This bug report was last modified 12 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.