[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-buffer change
From: |
martin rudalics |
Subject: |
Re: display-buffer change |
Date: |
Mon, 27 Aug 2007 22:52:21 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> Split an emacs frame in two windows showing buffers A and B:
>
> +-------------+
> | |
> | A |
> | |
> +-------------+
> | |
> | B |
> | |
> +-------------+
>
> While in the lower window, run
>
> (set-window-dedicated-p (selected-window) t)
>
> Now, in the upper window, run
>
> (display-buffer "C")
>
> In Emacs 21, this will be the result:
>
> +-------------+
> | A |
> +-------------+
> | C |
> +-------------+
> | |
> | B |
> | |
> +-------------+
>
> In Emacs 22, this will be the result:
>
> +-------------+
> | |
> | C |
> | |
> +-------------+
> | |
> | B |
> | |
> +-------------+
>
> In Emacs 22 with split-heigh-threshold=10, this will be the result:
>
> +-------------+
> | |
> | A |
> | |
> +-------------+
> | B |
> +-------------+
> | C |
> +-------------+
>
> I'm not sure how well this will work for me in practice, but I think
> at least it's an improvement.
It's awful. We could have `display-buffer' call `get-lru-window' and
`get-largest-window' with the second argument nil.