unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 6468@debbugs.gnu.org
Subject: bug#6468: A couple of problem related to frame raising (partly w32)
Date: Sun, 20 Jun 2010 14:21:25 +0200	[thread overview]
Message-ID: <AANLkTily37ltmdAVuFmmhhgYwG3Pk_z3FCaQ2Q-w6eHo@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikBIOto7Ryb6vR5GsAyQzCuhOG34j0od4FdDcKM@mail.gmail.com>

On Sun, Jun 20, 2010 at 3:07 AM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:
>>
>> Are you sure this isn't just Windows trying to keep Emacs from
>> stealing the focus? You know, AllowSetForegroundWindow and that stuff.
>> I've sometimes seen emacsclient call Emacs from a console (4NT) and
>> Emacs not getting the focus because 4NT (and so emacsclient) just
>> happened to lose the focus before calling AllowSetForegroundWindow.
>
>
> No, I am not sure. And since the frame seems to be in a strange state
> I am even more unsure. "Was there some bad system call that made the
> OS upset so it refuses to do this?"
>
> I have seen such problem when dealing with low level functions. It can
> be very frustrating. Maybe a lot of those bugs in Windows that led to
> bad recovery now have been cured. I have know idea and it can really
> take a long time to find out.
>
> I thought first when you mention AllowSetForegroundWindow "ah, that is
> Firefox that does not give emacsclient this so it can't give it to
> Emacs". But that can not be the case since if I server-raise-frame is
> non-nil then Emacs comes to the foreground (but the whole of it, not
> just the frame I want).
>
> And then I have been looking at which threads was involved. At least
> it looks like the same threads. But maybe still there is an issue with
> the threads that I do not understand. Perhaps only one thread has this
> privelege and it is not given to the other? There is no transferring
> of it in Emacs AFAICS.


It happened again that it worked. Ah, fine, I thought and removed what
I commented out. Then it stopped working.

Any thoughts about what could be behind why Emacs behaves this way?
What do you think we should do?

My own guess is that there are some bad system calls in Emacs
somewhere that causes Emacs to fail. But I am not sure where. From my
own experiences I know that they do not have to be around the calls to
SetForegroundWindow at all. Since both you and Eli thinks that it is a
bad idea to check more system calls I would be glad for a suggestion
what to do instead.





  reply	other threads:[~2010-06-20 12:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-19 18:23 bug#6468: A couple of problem related to frame raising (partly w32) Lennart Borgman
2010-06-19 18:35 ` Juanma Barranquero
2010-06-19 19:14   ` Lennart Borgman
2010-06-19 19:20     ` Juanma Barranquero
2010-06-19 20:32       ` Lennart Borgman
2010-06-19 20:50         ` Juanma Barranquero
2010-06-19 23:36           ` Lennart Borgman
2010-06-19 23:58             ` Juanma Barranquero
2010-06-20  1:07               ` Lennart Borgman
2010-06-20 12:21                 ` Lennart Borgman [this message]
2010-06-21 23:19             ` Lennart Borgman
2010-06-22  8:17               ` Juanma Barranquero
2010-06-22 10:39                 ` Lennart Borgman
2010-06-22 10:58                   ` Juanma Barranquero
2010-06-23 10:17                     ` Lennart Borgman
2010-06-23 10:34                       ` Juanma Barranquero
2010-06-23 10:41                         ` Lennart Borgman
2010-06-23 10:54                           ` Juanma Barranquero
2010-06-23 11:08                             ` Lennart Borgman
2010-06-19 21:47 ` Eli Zaretskii
2011-10-06 20:35   ` Glenn Morris
     [not found] ` <handler.6468.D6468.131793333925336.notifdone@debbugs.gnu.org>
2011-10-06 20:39   ` bug#6468: closed (Re: bug#6468: A couple of problem related to frame raising (partly w32)) Lennart Borgman

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=AANLkTily37ltmdAVuFmmhhgYwG3Pk_z3FCaQ2Q-w6eHo@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=6468@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).