From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Controlling which windows can be selected by display-buffer-pop-up-window Date: Sun, 22 Dec 2013 16:37:41 +0100 Message-ID: <52B70745.10201@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1387726719 3786 80.91.229.3 (22 Dec 2013 15:38:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Dec 2013 15:38:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?ISO-8859-2?Q?Jaros=B3aw_Rzesz=F3tko?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 22 16:38:42 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vul71-0006s6-T7 for ged-emacs-devel@m.gmane.org; Sun, 22 Dec 2013 16:38:40 +0100 Original-Received: from localhost ([::1]:58222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vul71-00012e-HL for ged-emacs-devel@m.gmane.org; Sun, 22 Dec 2013 10:38:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vul6I-0008HW-Hk for emacs-devel@gnu.org; Sun, 22 Dec 2013 10:38:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vul6B-0003uG-9j for emacs-devel@gnu.org; Sun, 22 Dec 2013 10:37:54 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:62650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vul6B-0003uC-0F for emacs-devel@gnu.org; Sun, 22 Dec 2013 10:37:47 -0500 Original-Received: from [62.47.48.107] ([62.47.48.107]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LrvBu-1VV9Zn3okQ-013boo for ; Sun, 22 Dec 2013 16:37:46 +0100 In-Reply-To: X-Provags-ID: V03:K0:dsDDzJYWEtIBo10olshqE/5rOG7ESM4HRF+vBpkM9So89EoNLqN 8ovB+Q7XDy7z6UWF0Gr0cYGsr6o7PMLL8KOF5sIRbRbdh42aDpiY+luh2FhOldphcKu9l+I lP3akU9XOPrNZBnVl0P919AjtTdoX1IKwYq0Ppvz4cKkFAgInwLPeBsUge8KrOyHCHeSXsR pV//S7sdeISaE5WhfyJ6A== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166733 Archived-At: > Is there any chance a more flexible mechanism for controlling which window > is chosen to be split when a new buffer is about to displayed could make it > into Emacs? I have been trying to implement a way to keep a toggleable > terminal or compilation window at the bottom of an Emacs frame, that is > only a few lines high and is never split or deleted unless the users > requests it - I think this is a perfectly reasonable feature many people > would like, and one present in many environments those days. Currently, to > the extent I managed to learn, implementing a window that consistently > keeps a fixed position and size and is never split, is possible only in two > ways, one is a really dirty hack, and the second one requires > reimplementing a lot of the mechanisms in window.el. To avoid that a window is split, fix its buffer's height (see the variable `window-size-fixed'). To show a window continuously at the bottom of a frame, use the function `display-buffer-in-side-window' with a 'bottom argument. No dirty hacks needed ;-) martin