From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: split-window-preferred-function Date: Wed, 02 Apr 2008 12:30:39 +0200 Message-ID: <878wzwo8fk.fsf@member.fsf.org> References: <47E188D5.5030502@gmx.at> <87hcf1rrdj.fsf@jurta.org> <87r6e3k3hc.fsf@jurta.org> <87d4pfzt2j.fsf@jurta.org> <47ED4BF7.9060507@gmx.at> <871w5utnac.fsf@jurta.org> <47EE064A.1060105@gmx.at> <874papk8zl.fsf@jurta.org> <47F34982.2000706@gmx.at> <87lk3woay9.fsf@member.fsf.org> <47F358CD.2020102@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207132556 3411 80.91.229.12 (2 Apr 2008 10:35:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2008 10:35:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 02 12:36:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jh0KO-0002fc-R0 for ged-emacs-devel@m.gmane.org; Wed, 02 Apr 2008 12:36:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jh0Jl-0002sd-LR for ged-emacs-devel@m.gmane.org; Wed, 02 Apr 2008 06:35:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jh0Ex-0008MQ-Jk for emacs-devel@gnu.org; Wed, 02 Apr 2008 06:30:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jh0Ev-0008Kb-Gv for emacs-devel@gnu.org; Wed, 02 Apr 2008 06:30:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jh0Ev-0008KL-9f for emacs-devel@gnu.org; Wed, 02 Apr 2008 06:30:45 -0400 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jh0Eu-0000rO-GK for emacs-devel@gnu.org; Wed, 02 Apr 2008 06:30:45 -0400 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id A1501E3F1C for ; Wed, 2 Apr 2008 06:30:41 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 02 Apr 2008 06:30:41 -0400 X-Sasl-enc: MymvujAkPAaYOLcX1gKz98eWI3hvliMMFs3T1Q+GMalL 1207132241 Original-Received: from localhost (dslb-084-063-001-210.pools.arcor-ip.net [84.63.1.210]) by mail.messagingengine.com (Postfix) with ESMTPA id C1FE4B08D for ; Wed, 2 Apr 2008 06:30:40 -0400 (EDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <47F358CD.2020102@gmx.at> (martin rudalics's message of "Wed, 02 Apr 2008 11:58:37 +0200") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94182 Archived-At: martin rudalics writes: >> What would that do? > > The same as `split-height-threshold' - horizontally spoken ;-) Oh, indeed. :) >> Judging from the name I think it would inhibit splitting if the >> resulting window would be smaller than that threshold and reuse the >> least recently used window instead. I'd welcome such a feature (I >> usually don't want windows that are smaller than 80 columns), but >> wouldn't we need the same for height, too? > > We have that already but hardly anyone is aware of it. Its default > value is 500 (lines, nota bene). The purpose of these variables is > trivial: Windows less than that are not split by `display-buffer'. I tried setting it to 20, but cannot see a difference. My frame is 221 columns x 61 lines tall. I'm in *scratch* (the only window) and eval (display-buffer "diary") (display-buffer "*Help*") step by step, first with the default threshold of 500. Because I use split-window-preferred-horizontally the diary buffer is shown in a new window right of the window holding *scratch*. Now I eval the second `display-buffer' and the right window's buffer is replaced with the *Help* buffer. With `split-height-threshold' set to 20 I get the same behavior. Reading the `display-buffer' docstring I think instead of replacing the right window's buffer it should instead split the left window vertically, cause that's much bigger (61 lines) than the threshold. Bye, Tassilo