bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Juri Linkov
Subject: bug#1806: dired-pop-to-buffer in wrong place
Date: Thu, 06 Oct 2011 02:23:59 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu)

> I assume W2 is showing the Dired buffer in this example?

Yes, W2 is showing the Dired buffer.  This is a clearer picture:

          ______________________________________
         | ____________________________________ |
         ||                                    ||
         ||                                    ||
         ||               Dired                ||
         ||                                    ||
         ||_________________W2_________________||
         | ____________________________________ |
         ||                                    ||
         ||_________________W3_________________||
         |__________________W1__________________|

> If so, the proposed patch has no effect---W2 is split, so W3 is
> between the *Marked Files* buffer and the echo area.

The problem is that currently `fit-window-to-buffer' in
`dired-pop-to-buffer' increases the height of the unrelated window W3
like is shown below:

          ______________________________________
         | ____________________________________ |
         ||               Dired                ||
         ||_________________W2_________________||
         | ____________________________________ |
         ||            *Marked Files*          ||
         ||_________________W4_________________||
         | ____________________________________ |
         ||                                    ||
         ||                                    ||
         ||                                    ||
         ||                                    ||
         ||_________________W3_________________||
         |__________________W1__________________|

This is very ugly.

But when the *Marked Files* window is created when `window-nest' is t, then
`fit-window-to-buffer' doesn't enlarge the unrelated window W3 since
a new internal window W5 forces it to resize the Dired window W2:

          ______________________________________
         | ____________________________________ |
         || __________________________________ ||
         |||                                  |||
         |||              Dired               |||
         |||________________W2________________|||
         || __________________________________ ||
         |||           *Marked Files*         |||
         |||________________W4________________|||
         ||_________________W5_________________||
         | ____________________________________ |
         ||                                    ||
         ||_________________W3_________________||
         |__________________W1__________________|

Unless there is a way to tell `fit-window-to-buffer' to change the height
of the upper window instead of the lower window, setting `window-nest' to t
can fix `dired-pop-to-buffer' to not resize other unrelated windows.




reply via email to

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