emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Paul Mead <paul.d.mead@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Vertical split in Emacs 23
Date: Thu, 16 Jul 2009 10:46:19 -0400	[thread overview]
Message-ID: <14073.1247755579@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Paul Mead <paul.d.mead@gmail.com> of "Wed, 15 Jul 2009 18:51:27 BST." <87tz1dsulc.fsf@gmail.com>

Paul Mead <paul.d.mead@gmail.com> wrote:


> I've recently upgraded to Emacs 23, and I'm not at all impressed with
> the vertical split that it seems to prefer when there's supposedly
> enough buffer width to allow it - the Agenda gets squashed up and things
> like the TODO quick selection menus look terrible.
> 
> Is there a way of changing this back to the old behaviour? Through
> experimentation I've found that if I reduce the frame width sufficiently
> it reverts to horizontal split but I like to work with emacs maximized
> most often.
> 

Assuming that the variable `split-window-preferred-function' is set to
`split-window-sensibly', you can play with some of the settings mentioned
in the functions's documentation:

,----
| split-window-sensibly is a compiled Lisp function in `window.el'.
| 
| (split-window-sensibly WINDOW)
| 
| Split WINDOW in a way suitable for `display-buffer'.
| If `split-height-threshold' specifies an integer, WINDOW is at
| least `split-height-threshold' lines tall and can be split
| vertically, split WINDOW into two windows one above the other and
| return the lower window.  Otherwise, if `split-width-threshold'
| specifies an integer, WINDOW is at least `split-width-threshold'
| columns wide and can be split horizontally, split WINDOW into two
| windows side by side and return the window on the right.  If this
| can't be done either and WINDOW is the only window on its frame,
| try to split WINDOW vertically disregarding any value specified
| by `split-height-threshold'.  If that succeeds, return the lower
| window.  Return nil otherwise.
| 
| By default `display-buffer' routines call this function to split
| the largest or least recently used window.  To change the default
| customize the option `split-window-preferred-function'.
| 
| You can enforce this function to not split WINDOW horizontally,
| by setting (or binding) the variable `split-width-threshold' to
| nil.  If, in addition, you set `split-height-threshold' to zero,
| chances increase that this function does split WINDOW vertically.
| 
| In order to not split WINDOW vertically, set (or bind) the
| variable `split-height-threshold' to nil.  Additionally, you can
| set `split-width-threshold' to zero to make a horizontal split
| more likely to occur.
| 
| Have a look at the function `window-splittable-p' if you want to
| know how `split-window-sensibly' determines whether WINDOW can be
| split.
`----

I haven't checked whether/how you can restore emacs-22 behavior though.

HTH,
Nick

      parent reply	other threads:[~2009-07-16 14:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15 17:51 Vertical split in Emacs 23 Paul Mead
2009-07-15 18:08 ` Benjamin Andresen
2009-07-16  7:22   ` Paul Mead
2009-07-16  8:35     ` Cian OConnor
2009-07-16 22:13     ` Bastien
2009-07-26 10:36       ` Paul Mead
2009-07-31 13:28         ` Ryan C. Thompson
2009-07-16 14:46 ` Nick Dokos [this message]

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14073.1247755579@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=paul.d.mead@gmail.com \
    /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/org-mode.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).