emacs-devel
[Top][All Lists]
Advanced

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

Re: pop-up-windows value to force a new window


From: Stuart D. Herring
Subject: Re: pop-up-windows value to force a new window
Date: Tue, 5 Sep 2006 12:59:35 -0700 (PDT)
User-agent: SquirrelMail/1.4.6-7.el3.7lanl

> I don't see a good way to force `display-buffer' and related functions to
> always use another window, even when there is more than one window
> displayed
> currently. Is there some way (besides defining `display-buffer-function'
> in
> such a way that it does this)?

First, you need to define what "always use another window" means.  What if
the current frame is divided into so many windows (or is itself so small)
that no splitting can occur because of the minimum window size variables? 
What if the current frame is unsplittable (where you shouldn't split it
automatically), or worse is a minibuffer-only frame that you -can't-
split?

> This would let Lisp code, for example, bind to that value, and be sure
> that
> `display-buffer' etc. will always create a new window. Subsequently
> deleting
> that window will not leave fewer windows than before the display. IOW,
> this
> would let you use `display-buffer' to always pop up an extra window.

If you want to "not leave fewer windows", what you probably want is to
restore the window configuration.  If that's what you want, just do it:
use `current-window-configuration' and `set-window-configuration'.  (There
are a few other useful related functions which can be found with Apropos.)
 If it interests, I have written a small "temporary window configurations"
package which aims to automate that process.

Hope this helps,
Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

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