From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Oleksandr Gavenko (aka gavenkoa)" Newsgroups: gmane.emacs.help Subject: Windows splitting: prefer only 2 windows horizontal spliting. Date: Sun, 20 Feb 2011 22:52:39 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298235259 4140 80.91.229.12 (20 Feb 2011 20:54:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 20:54:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 20 21:54:15 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrGIH-00066k-JI for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2011 21:54:13 +0100 Original-Received: from localhost ([127.0.0.1]:60707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrGIH-0002fJ-0c for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2011 15:54:13 -0500 Original-Received: from [140.186.70.92] (port=56643 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrGHC-0002Nv-33 for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 15:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrGHA-0003rZ-MN for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 15:53:05 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:35100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrGHA-0003rU-F2 for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 15:53:04 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PrGH7-0005Yc-2S for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 21:53:01 +0100 Original-Received: from 78-25-63-35.static.vega-ua.net ([78.25.63.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Feb 2011 21:53:01 +0100 Original-Received: from gavenkoa by 78-25-63-35.static.vega-ua.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Feb 2011 21:53:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 78-25-63-35.static.vega-ua.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79266 Archived-At: 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?