unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: dkruchinin@acm.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: pop-up bottom window for temporary buffers
Date: Wed, 23 Feb 2011 08:21:49 +0100	[thread overview]
Message-ID: <4D64B58D.7040808@gmx.at> (raw)

 > I would like to have a pop-up bottom window for temporary buffers like
 > compilation, Completions, etc. It should split-vertically the whole
 > frame even if root window was split horizontally.
 > For example: Before M-x compile:
 >
 > +------+------+
 > |      |      |
 > |      |      |
 > |      |      |
 > +------+------+
 > After:
 >
 > +------+------+
 > |      |      |
 > +------+------+
 > |             |
 > +------+------+
 >
 > I.e. it should be something like ecb-compilation-window, but without
 > ECB because I don't want to use ECB and CEDET. Actually I see two ways
 > to make described behavior but both have their drawbacks.
 >
 > 1) Use split-root.el or popwin-el modules.
 > Drawback: they use delete-other-windows function and then rebuild
 > previous windows tree after root window is split as required. They
 > invalidate all references to existed earlier windows in your code(or
 > code of any module).

In fact these also break overlays with a window property.

 > For example it's hard to make elscreen module to work with
 > them(because elscreen saves current-window-configuration and then
 > creates another one).
 >
 > 2) Set window-min-height variable to its minimal possible value(1) and
 > call split-window-vertically during emacs startup minimizing window
 > height after it's created. Then use this window for temporary buffers
 > setting its height as required.
 > Drawbacks: Small annoying window with annoying modeline on the bottom
 > of the frame, doesn't work with emacs --daemon.

You can get rid of the modeline but you can't get rid of the one-line
window because Emacs doesn't allow zero height windows.

 > Are there more elegant ways to do that without drawbacks?

If you have bazaar installed try doing something like

bzr branch bzr://bzr.savannah.gnu.org/emacs/window-pub window-pub

Then you can pop up an arbitrary number of windows on any side of a
frame.

martin



             reply	other threads:[~2011-02-23  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23  7:21 martin rudalics [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-02-19 23:34 pop-up bottom window for temporary buffers Dan Kruchinin

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4D64B58D.7040808@gmx.at \
    --to=rudalics@gmx.at \
    --cc=dkruchinin@acm.org \
    --cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).