emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: wrong frame is current when after-make-frame-functions


From: Drew Adams
Subject: RE: wrong frame is current when after-make-frame-functions
Date: Tue, 31 May 2005 06:23:23 -0700

        5. The message that appears shows that, at the time
           after-make-frame-functions was executed, the
           (frame-char-width) of the selected frame is 5, not 8.

        However, debugging shows that the new frame is selected when
        after-make-frame-functions is executed. The problem is that
        frame-char-width does not take this selected frame into account, for
        some reason - it uses the previous frame to calculate the character
        width.

    I did some debugging and found that the first frame is still
    selected when this function is called.  That seems correct to me.
    I think there is no bug here.

Sorry - just to clarify: Do you mean that the original frame, not the new
frame, is selected when after-make-frame-functions is executed? If so, why
is that correct? If it is correct, how can the user select the new frame
(say in after-make-frame-functions) to do something to or in it - how can
the new frame be addressed (what is its identity)?

Thanks,

  Drew





reply via email to

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