From: martin rudalics <rudalics@gmx.at>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: display-buffer cleverness - how to tame?
Date: Mon, 04 May 2009 10:38:11 +0200 [thread overview]
Message-ID: <49FEA973.70705@gmx.at> (raw)
In-Reply-To: <000c01c9cc8b$ba796c50$0200a8c0@us.oracle.com>
> 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
next prev parent reply other threads:[~2009-05-04 8:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-04 7:41 display-buffer cleverness - how to tame? Drew Adams
2009-05-04 8:38 ` martin rudalics [this message]
2009-05-04 14:39 ` Drew Adams
2009-05-04 15:03 ` Miles Bader
2009-05-04 15:49 ` Drew Adams
2009-05-04 18:58 ` Samuel Bronson
2009-05-05 2:50 ` Miles Bader
2009-05-04 16:36 ` Stefan Monnier
2009-05-04 16:41 ` martin rudalics
2009-05-04 17:13 ` Drew Adams
2009-05-05 7:02 ` martin rudalics
2009-05-05 14:18 ` Drew Adams
2009-05-05 16:33 ` martin rudalics
2009-05-05 16:58 ` Drew Adams
2009-05-05 18:55 ` martin rudalics
2009-05-05 20:20 ` Drew Adams
2009-05-06 16:21 ` martin rudalics
2009-05-06 17:54 ` Drew Adams
2009-05-07 9:37 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49FEA973.70705@gmx.at \
--to=rudalics@gmx.at \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).