all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: nyc4bos@aol.com
Cc: 8885@debbugs.gnu.org
Subject: bug#8885: 24.0.50; Temporary failure with `select-frame-by-name' on Windows
Date: Fri, 17 Jun 2011 23:57:03 +0200	[thread overview]
Message-ID: <BANLkTi=zoKh2TviWrsybEq0eYK1T1hU+NQ@mail.gmail.com> (raw)
In-Reply-To: <yrir56smidc.fsf@aol.com>

> AllowSetForegroundWindow failed with w32 error 5: Access is denied.
>
> This error appears to occur when Emacs is "busy" (for example when in the
> middle of loading a large .el file, etc) and executing the emacsclient
> `--eval' command from a Windows command prompt.

I cannot reproduce it, and currently the return value of
AllowSetForegroundWindow is not checked.

But, according to
http://msdn.microsoft.com/en-us/library/ms632668(VS.85).aspx the
function will fail if the calling process cannot set the foreground
window.

So it's possible that you're invoking emacsclient at at moment when
it's unable to set the foreground window, for example if the
foreground lock timeout has not expired.

All in all, trying to make emacsclient give focus to emacs is never
going to be 100% reliable.

    Juanma





      reply	other threads:[~2011-06-17 21:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 18:18 bug#8885: 24.0.50; Temporary failure with `select-frame-by-name' on Windows nyc4bos
2011-06-17 21:57 ` Juanma Barranquero [this message]

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='BANLkTi=zoKh2TviWrsybEq0eYK1T1hU+NQ@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=8885@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.