emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]