Subject: Re: bug#1806: dired-pop-to-buffer in wrong place

From: Glenn Morris <[email-masked]>
Date: Mon, 05 Oct 2009 22:52:50 -0400

Juri Linkov wrote:

> In emacs -Q I see a strange window configuration after `M-x calendar
> RET' in a single wide window:
>
>     +-------------------------+        +------------+------------+
>     |                         |        |            |            |
>     |                         |        |            |            |
>     |                         |        |            |            |
>     |                         |        |            |            |
>     |                         |        |            |            |
>     |                         |        |            |            |
>     |                         |  ===>  |            |            |
>     |                         |        |            |            |
>     |                         |        |            | *Messages* |
>     |                         |        |            +------------+
>     |                         |        |            |            |
>     | *scratch*               |        | *scratch*  | *Calendar* |
>     +-------------------------+        +------------+------------+

That was the intended behaviour. If the frame is wide enough to split
horizontally, it is split horizontally. This both makes sense and
looks correct to me.

> I believe it was supposed to do rather:
>
>     +-------------------------+        +-------------------------+
>     |                         |        |                         |
>     |                         |        |                         |
>     |                         |        |                         |
>     |                         |        |                         |
>     |                         |        |                         |
>     |                         |        |                         |
>     |                         |  ===>  |                         |
>     |                         |        |                         |
>     |                         |        | *scratch*               |
>     |                         |        +-------------------------+
>     |                         |        |                         |
>     | *scratch*               |        | *Calendar*              |
>     +-------------------------+        +-------------------------+

It will do this if the frame is not wider than split-width-threshold.