[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs 24 randomly hanging
From: |
Chong Yidong |
Subject: |
Re: emacs 24 randomly hanging |
Date: |
Thu, 23 Feb 2012 16:05:18 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> The problem is that x-create-frame calls x_set_menu_bar_lines, which
>> calls window-configuration-change-hook. Because that hook is called in
>> the middle of x-create-frame, the (half-initialized) frame isn't on
>> Vframe_list yet.
>>
>> Patch welcome; I don't have time to work on this further right now.
>
> How about "don't do it"?
I committed a change to inhibit window-configuration-change-hook there.
There's another possible problem: x-create-frame sets the
background-color parameter prior to the frame being put on Vframe_list.
IIUC, this parameter needs to be set before we can consider the frame
live, because the frame size calculation depends on the default face,
which may in turn depend on the background mode. But setting the
parameter causes a Lisp call to frame-set-background-mode, so we can in
principle get in trouble if the user redefines or advises that function.
But that's a sufficiently obscure corner case that we can leave it for
post-24.1, I think.
- Re: emacs 24 randomly hanging, (continued)
- Re: emacs 24 randomly hanging, Dan Nicolaescu, 2012/02/21
- Re: emacs 24 randomly hanging, martin rudalics, 2012/02/21
- Re: emacs 24 randomly hanging, Adam, 2012/02/21
- Re: emacs 24 randomly hanging, martin rudalics, 2012/02/22
- Re: emacs 24 randomly hanging, Andreas Schwab, 2012/02/22
- Re: emacs 24 randomly hanging, martin rudalics, 2012/02/22
- Re: emacs 24 randomly hanging, Stefan Monnier, 2012/02/22
- Re: emacs 24 randomly hanging, martin rudalics, 2012/02/24
- Re: emacs 24 randomly hanging, Chong Yidong, 2012/02/22
- Re: emacs 24 randomly hanging, Eli Zaretskii, 2012/02/22
- Re: emacs 24 randomly hanging,
Chong Yidong <=
- Re: emacs 24 randomly hanging, Christopher Schmidt, 2012/02/23
- Re: emacs 24 randomly hanging, Chong Yidong, 2012/02/23
- Re: emacs 24 randomly hanging, Christopher Schmidt, 2012/02/23
- Re: emacs 24 randomly hanging, martin rudalics, 2012/02/24