[Top][All Lists]

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

Re: [Fwd: Frame Height Different for Default Frame and Additional Frames

From: Jan Djärv
Subject: Re: [Fwd: Frame Height Different for Default Frame and Additional Frames]
Date: Thu, 11 Oct 2007 08:15:12 +0200
User-agent: Thunderbird (X11/20070728)

martin rudalics skrev:
 > I think the bug is because frame parameters for the first frame is
 > applied after the frame already has been created, but for frames created
 > later, they are applied before the frame gets created.

IIUC the value of `tool-bar-mode' is known only after the first frame
has been created.  Hence we can either remove the adjustment code for the
native tool-bar or add an entry to PROBLEMS.  Is there a third way?

The obvious (but more difficult) would be to read all startup lisp before creating the first frame. Or create an initial frame (like a splash screen), and then replace it with a proper "editing" frame.

What I had in mind was a modeless frame with the Gnu logo and one line of text from *Messages* at the borrom. When startup is complete, then create a proper frame with tool bars, menus and such. Of course there are special cases to handle, like debug on startup, errors in ~/.emacs and such.

Another way is to forcibly resize the frame after all startup code has been read and the value of `tool-bar-mode' is known. I think Emacs used to do that before. But it looks ugly.

        Jan D.

reply via email to

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