From: nyc4bos@aol.com
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 7658@debbugs.gnu.org
Subject: bug#7658: 24.0.50; emacsclient not raising frame
Date: Wed, 06 Jul 2011 19:03:24 -0400 [thread overview]
Message-ID: <yriei23vwoz.fsf@aol.com> (raw)
In-Reply-To: <CAAeL0SRr6YoE6EMB478a_qX87bUVTEi8Bs758qh67Wc+4xo+pA@mail.gmail.com> (Juanma Barranquero's message of "Mon, 4 Jul 2011 13:28:59 +0200")
Juanma Barranquero <lekktu@gmail.com> writes:
> 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).
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.
>
> Â Â Juanma
next prev parent reply other threads:[~2011-07-06 23:03 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
2011-07-06 23:03 ` nyc4bos [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yriei23vwoz.fsf@aol.com \
--to=nyc4bos@aol.com \
--cc=7658@debbugs.gnu.org \
--cc=lekktu@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).