unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: "Oleksandr Gavenko (aka gavenkoa)" <gavenkoa@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Windows splitting: prefer only 2 windows horizontal spliting.
Date: Sun, 20 Feb 2011 17:07:39 -0600	[thread overview]
Message-ID: <2FFAC515-B54E-45E7-816A-20D9955F5743@gmail.com> (raw)
In-Reply-To: <ijruuv$3hu$1@dough.gmane.org>


On Feb 20, 2011, at 2:52 PM, Oleksandr Gavenko (aka gavenkoa) wrote:

> How prefer horizontal splitting I know:
> 
> (when window-system
>  ;; Prefer horizontal windows splitting.
>  (setq split-height-threshold 0)
>  (setq split-width-threshold nil)
>  )
> 
> But how stop Emacs from splitting when already 2 windows?
> So reuse existing window.
> 
> For example I edit file (1 window) then M-x compile (2 windows)
> then C-x ` (2 windows, *Compilation* and source with error) -
> no other window appear.
> 
> Emacs 23.1/22.3/21.4 work in such way on Debian, but new Emacs 23.2.1
> work different.
> 
> For example: open file, C-x v l (new window show log),
> d (new window show diff, there are 3 windows now),
> M-x man printf RET (new window show man, there 4 windows now).
> 
> So how force Emacs display no more that 2 windows at same time?

This is not exactly what you were asking for.  I wanted to get emacs to 
do what it was doing before.  I followed the instructions but found
that it kept creating smaller and smaller windows.  So, now I leave
split-height-threshold alone and do this (this is inside my
.emacs.d/init.el file.

(custom-set-variables
 ...
'(split-width-threshold 1600)
)

which basically says "don't split windows vertically".
Setting it to nil didn't have the effect I was looking for.

pedz




  reply	other threads:[~2011-02-20 23:07 UTC|newest]

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

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=2FFAC515-B54E-45E7-816A-20D9955F5743@gmail.com \
    --to=pedzsan@gmail.com \
    --cc=gavenkoa@gmail.com \
    --cc=help-gnu-emacs@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.
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).