[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-buffer cleverness - how to tame?
From: |
martin rudalics |
Subject: |
Re: display-buffer cleverness - how to tame? |
Date: |
Mon, 04 May 2009 10:38:11 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Windows/20080708) |
> I haven't spent a lot of time investigating, but the problem seems to be that
> display-buffer now tries to split the largest window.
In Emacs 22 `display-buffer' tries to split the largest window first
and, if that fails, the least recently used window. This behavior is
unchanged in Emacs 23.
> In particular, I have two windows, left and right, with the left one wider and
> selected when I call display-buffer. The behavior I want is for the right,
> narrower window to be split (vertically). Instead, it is the left, wider
window
> that gets split (vertically).
In Emacs 22 `display-buffer' didn't try to split the largest window
vertically when it was not full-width. No such restrictions applied for
the least recently used window. In Emacs 23 the largest window can get
split even when it's not full-width.
To get the old behavior back in your case it will be best to write your
own `split-window-preferred-function' just as we're currently trying to
do for `dired-pop-to-buffer'. This will let you specify explicitly
which window `display-buffer' should try to split and whether it should
split it vertically or horizontally.
martin
- display-buffer cleverness - how to tame?, Drew Adams, 2009/05/04
- Re: display-buffer cleverness - how to tame?,
martin rudalics <=
- Re: display-buffer cleverness - how to tame?, Stefan Monnier, 2009/05/04
- Re: display-buffer cleverness - how to tame?, martin rudalics, 2009/05/04
- RE: display-buffer cleverness - how to tame?, Drew Adams, 2009/05/04
- Re: display-buffer cleverness - how to tame?, martin rudalics, 2009/05/05
- RE: display-buffer cleverness - how to tame?, Drew Adams, 2009/05/05