all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Perry Smith <pedzsan@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Windows splitting: prefer only 2 windows horizontal spliting.
Date: Mon, 21 Feb 2011 18:00:42 +0100	[thread overview]
Message-ID: <4D629A3A.7010401@gmx.at> (raw)
In-Reply-To: <EB639231-889F-42E9-8F67-E16CE7F2A382@gmail.com>

 > 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.
 >
 > The last sentence prompted me to set split-height-threshold to 0
 > and that is probably why I constantly got smaller and smaller windows
 > instead of reusing a previous window.

Replacing "zero" by "a smaller value" might cause less confusion here.

 >> Actually it means "don't split windows horizontally" ;-)
 >
 > Yea.  I totally don't understand the language here.  A vertically line
 > creating two windows is splitting it vertically in my pee sized brain.
 > Sorry about that.

I'm afraid every second user interprets this as you did.  Unfortunately,
it's not easy to find a less confusing term here.  We could replace
"horizontally" by "side-by-side" but I have no idea which term to use
instead of "vertically".

 >> What effect were you looking for?
 >
 > What emacs use to do before split-window-sensibly.

Do you use wide frames so Emacs tries to split them into side-by-side
windows?  What are your frame sizes?

 > At the time, I concluded that it wasn't a bug in the code but just
 > that I misread / misunderstood the documentation.  I believe I tried
 > setting split-width-threshold to nil and split-height-threshold (after
 > trying 0), I tried leaving it alone and it still didn't go back to the
 > old method.  Setting split-width-threshold to some giant number
 > seems to take a different path through the code and gives me
 > the old behavior.

If you never want more than two windows per frame the following should
be sufficient:

(setq split-height-threshold nil)
(setq split-width-threshold nil)

martin



  reply	other threads:[~2011-02-21 17:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21  7:47 Windows splitting: prefer only 2 windows horizontal spliting martin rudalics
2011-02-21 14:15 ` Perry Smith
2011-02-21 17:00   ` martin rudalics [this message]
2011-02-21 17:43     ` Perry Smith
2011-02-21 19:03       ` martin rudalics
2011-02-21 22:44       ` Oleksandr Gavenko
2011-03-10 12:38         ` Oleksandr Gavenko
  -- strict thread matches above, loose matches on Subject: below --
2011-02-21  7:46 martin rudalics
2011-02-20 20:52 Oleksandr Gavenko (aka gavenkoa)
2011-02-20 23:07 ` Perry Smith
2011-02-21 22:40   ` Oleksandr Gavenko

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

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

  git send-email \
    --in-reply-to=4D629A3A.7010401@gmx.at \
    --to=rudalics@gmx.at \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pedzsan@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.