[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs does not listen on w32
From: |
Stefan Monnier |
Subject: |
Re: Emacs does not listen on w32 |
Date: |
Mon, 14 Apr 2008 16:39:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> If you have such an infinite loop within a timer code, then Emacs *is*
>> hung, and it seems perfectly fine to let the OS's IsHungAppWindow deal
>> with it.
> I think Lennart's problem is that we don't let the OS's IsHungAppWindow deal
> with it. In Windows, each Window must have its own thread for message
> handling. This thread is not blocked by the infinite loop in the Lisp
> thread, so as far as Windows is concerned, the message has been received and
> dealt with.
Oops ;-)
> We could change the WM_CLOSE message to do a blocking SendMessage
> instead of a non-blocking PostMessage to pass the message on to the
> Lisp thread, but if we decide that the solution we want is to let
> Emacs be forcibly closed after a timeout, it might be better to have
> our own timeout so we can control what message we display to the user
> and at least attempt to quit the Lisp blockage and shutdown cleanly
> rather than letting the system do it uncleanly.
If Emacs is truly hung, it's perfectly fine to shutdown uncleanly.
But if C-g works, then it makes sense to do a `quit' so as to interrupt
any long running operation. But we'd probably first want to wait
a couple seconds and before doing the `quit'.
Stefan
- Re: Emacs does not listen on w32, (continued)
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/14
- Re: Emacs does not listen on w32, Stefan Monnier, 2008/04/14
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/14
- Re: Emacs does not listen on w32, Stefan Monnier, 2008/04/14
- Re: Emacs does not listen on w32, Jason Rumney, 2008/04/14
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/14
- Re: Emacs does not listen on w32, Jason Rumney, 2008/04/14
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/14
- Re: Emacs does not listen on w32,
Stefan Monnier <=
- Re: Emacs does not listen on w32, Jason Rumney, 2008/04/14
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/14
- Re: Emacs does not listen on w32, Jason Rumney, 2008/04/14
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/14
- Re: Emacs does not listen on w32, Óscar Fuentes, 2008/04/14
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/14
- Re: Emacs does not listen on w32, Óscar Fuentes, 2008/04/14
- Re: Emacs does not listen on w32, Jason Rumney, 2008/04/14
- Re: Emacs does not listen on w32, Lennart Borgman (gmail), 2008/04/15
- Re: Emacs does not listen on w32, Eli Zaretskii, 2008/04/13