From: Juanma Barranquero <lekktu@gmail.com>
To: nyc4bos@aol.com
Cc: 7658@debbugs.gnu.org
Subject: bug#7658: 24.0.50; emacsclient not raising frame
Date: Mon, 4 Jul 2011 13:28:59 +0200 [thread overview]
Message-ID: <CAAeL0SRr6YoE6EMB478a_qX87bUVTEi8Bs758qh67Wc+4xo+pA@mail.gmail.com> (raw)
In-Reply-To: <46y67pl5lx.fsf@aol.com>
On Thu, Dec 16, 2010 at 23:23, <nyc4bos@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
next prev parent reply other threads:[~2011-07-04 11:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-16 22:23 bug#7658: 24.0.50; emacsclient not raising frame nyc4bos
2011-07-04 11:28 ` Juanma Barranquero [this message]
2011-07-06 23:03 ` nyc4bos
2011-07-06 23:16 ` Juanma Barranquero
2011-12-03 23:00 ` Juanma Barranquero
2012-08-27 2:13 ` nyc4bos
2012-08-27 10:45 ` Juanma Barranquero
-- strict thread matches above, loose matches on Subject: below --
2011-11-13 4:46 bug#10034: 24.0.91; max-specpdl-size error nyc4bos
2011-11-13 10:49 ` martin rudalics
2011-12-09 23:48 ` bug#7658: 24.0.50; emacsclient not raising frame nyc4bos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAeL0SRr6YoE6EMB478a_qX87bUVTEi8Bs758qh67Wc+4xo+pA@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=7658@debbugs.gnu.org \
--cc=nyc4bos@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.