[Top][All Lists]

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

Re: set-frame-size for frame without minibuffer loses mode line

From: Jason Rumney
Subject: Re: set-frame-size for frame without minibuffer loses mode line
Date: Tue, 09 Oct 2007 12:33:24 +0100
User-agent: Thunderbird (Windows/20070728)

Drew Adams wrote:
> emacs -Q
> M-: (setq pop-up-frames t)
> M-: (setq minibuffer-frame-alist (cons (quote (minibuffer . only))
>                                        minibuffer-frame-alist))
> M-: (setq default-frame-alist (cons (quote (minibuffer))
>                                     default-frame-alist))
> M-: (make-frame minibuffer-frame-alist)
> C-x 4 d some directory
> With the dired frame selected:
> M-: (set-frame-size (selected-frame) 30 40)
> The dired frame is correctly resized, but an empty extra line appears
> below the mode line (there is no minibuffer on this frame).
There is for me, and the default-frame-alist above seems to suggest that
there should be if I am understanding it correctly.

> With the dired frame selected, repeat the last command (that is,
> repeat (set-frame-size (selected-frame) 30 40)):
> Now, both the extra empty "minibuffer" line and the mode line have
> disappeared. 

I have checked in a change that seems to fix the minibuffer disappearing
completely. There is still some strange behaviour, such as the extra
blank line at the bottom of the frame after the first resize, which
seems to be caused by the menu-bar wrapping automatically when the frame
is resized, but that happens asynchronously, so the Lisp code makes
certain assumptions that later turn out to be invalid.

reply via email to

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