all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: kzhr@d1.dion.ne.jp, 11513@debbugs.gnu.org
Subject: bug#11513: 24.1.50; raise-frame never raise the foreground window on Windows
Date: Mon, 21 May 2012 22:12:46 +0300	[thread overview]
Message-ID: <83sjetxs9d.fsf@gnu.org> (raw)
In-Reply-To: <4FB79899.8040408@gmx.at>

> Date: Sat, 19 May 2012 14:56:57 +0200
> From: martin rudalics <rudalics@gmx.at>
> CC: Kazuhiro Ito <kzhr@d1.dion.ne.jp>, 11513@debbugs.gnu.org
> 
> > Would other Windows users please try reproducing this problem on their
> > machines?
> 
> Not reproducible on Windows XP.  Tested with release and trunk, both
> built by myself.

It's a very elusive problem.  I managed to reproduce it on 1 system
out of 3 to which I have constant access, and even that only for a few
minutes and under some conditions.  E.g., when lowering the frame left
only the left side of the Emacs frame visible, the bug would manifest
itself; whereas when its right side was visible, it won't.  And once I
reshuffled the other windows a bit, the bug disappeared and I couldn't
reproduce it anymore.

Do you get the faulty behavior consistently?  If so, what's your value
of this Registry key:

  HKEY_CURRENT_USER\Control Panel\Desktop\UserPreferencesMask

Anyway, back to the discussion, I notice that:

 . The documentation of SetForegroundWindow
   (http://msdn.microsoft.com/en-us/library/windows/desktop/ms633539%28v=vs.85%29.aspx)
   lists quite a few of conditions under which the function will
   succeed; are you sure at least one of them was true when you tried?
   can you look at the value of 'retval' after the function returns
   without bringing the frame to the foreground?

 . This page:

     http://stackoverflow.com/questions/1544179/what-are-the-differences-between-bringwindowtotop-setforegroundwindow-setwindo

   seems to tell that BringWindowToTop might fail as well, if it is
   applied to a child window.  What does this mean in terms of Emacs
   frames?

 . There are quite a few discussions about this that Google picks up,
   and most of them clearly say that using BringWindowToTop isn't
   sufficient, either.





  parent reply	other threads:[~2012-05-21 19:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18 21:06 bug#11513: 24.1.50; raise-frame never raise the foreground window on Windows Kazuhiro Ito
2012-05-19  8:02 ` Eli Zaretskii
2012-05-19 12:02   ` Kazuhiro Ito
2012-05-19 12:42     ` Eli Zaretskii
2012-05-19 12:56       ` martin rudalics
2012-05-19 13:47         ` Eli Zaretskii
2012-05-21 19:12         ` Eli Zaretskii [this message]
2012-05-23 10:48           ` Kazuhiro Ito
2012-05-23 16:20             ` Eli Zaretskii
2012-05-23 16:38               ` Drew Adams
2012-05-24  6:04               ` Kazuhiro Ito
2012-05-24 16:01                 ` Lennart Borgman
2012-05-28 17:28                 ` Eli Zaretskii

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=83sjetxs9d.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=11513@debbugs.gnu.org \
    --cc=kzhr@d1.dion.ne.jp \
    --cc=rudalics@gmx.at \
    /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.