GNU bug report logs - #1806
dired-pop-to-buffer in wrong place

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Tue, 6 Jan 2009 15:40:04 UTC

Severity: normal

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


Message #655 received at 1806 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Glenn Morris <rgm <at> gnu.org>, 1806 <at> debbugs.gnu.org
Subject: Re: bug#1806: dired-pop-to-buffer in wrong place
Date: Thu, 06 Oct 2011 02:23:59 +0300
> 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.




This bug report was last modified 12 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.