all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Jason Rumney" <jasonr@gnu.org>
Cc: Bug-Gnu-Emacs <bug-gnu-emacs@gnu.org>
Subject: RE: set-frame-size for frame without minibuffer loses mode line
Date: Tue, 9 Oct 2007 07:19:56 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICCEHCEAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <470B6704.70402@gnu.org>

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

There is an extra empty line, but there should not be a minibuffer.

An entry of (minibuffer) in `default-frame-alist' means there is no
minibuffer - the `minibuffer' frame parameter value is nil. See node `Buffer
Parameters' of the Elisp manual:

  `minibuffer'
     Whether this frame has its own minibuffer.  The value `t' means
     yes, `nil' means no, `only' means this frame is just a minibuffer.
     If the value is a minibuffer window (in some other frame), the
     new frame uses that minibuffer.

> > With the dired frame selected, repeat the last command (that is,
> > repeat (set-frame-size (selected-frame) 30 40)):
> >
> > C-x ESC ESC
> >
> > 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.

Is there a Lisp patch I can used to check the fix, or is it in C sources?






  reply	other threads:[~2007-10-09 14:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07 16:46 set-frame-size for frame without minibuffer loses mode line Drew Adams
2007-08-08  9:31 ` martin rudalics
2007-08-08 14:13   ` Drew Adams
2007-08-08 15:28     ` martin rudalics
2007-10-09 11:33 ` Jason Rumney
2007-10-09 14:19   ` Drew Adams [this message]
2007-10-09 15:07     ` Jason Rumney
2007-10-09 15:28       ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICCEHCEAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.