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: Fri, 04 Apr 2008 19:21:36 +0200 Message-ID: <87y77twn6n.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> <87hcejc318.fsf@jurta.org> <87ve2zo1y5.fsf@member.fsf.org> <87bq4qfyuu.fsf@jurta.org> <87ve2yx7fz.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207329749 13841 80.91.229.12 (4 Apr 2008 17:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 17:22:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 04 19:23:01 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 1Jhpcv-0007D3-Fb for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 19:22:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhpcI-0005Cr-Nv for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 13:22:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jhpbh-0004hv-0v for emacs-devel@gnu.org; Fri, 04 Apr 2008 13:21:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jhpbg-0004hH-AC for emacs-devel@gnu.org; Fri, 04 Apr 2008 13:21:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhpbf-0004hA-TM for emacs-devel@gnu.org; Fri, 04 Apr 2008 13:21:39 -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 1Jhpbf-0005hq-Ho for emacs-devel@gnu.org; Fri, 04 Apr 2008 13:21:39 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 40B728FC52 for ; Fri, 4 Apr 2008 13:21:39 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 04 Apr 2008 13:21:39 -0400 X-Sasl-enc: UX1PWSd9EnI5mdZ2W2PYj4/ryy8lC28RUDvNEIIGID79 1207329698 Original-Received: from localhost (dslb-092-072-009-019.pools.arcor-ip.net [92.72.9.19]) by mail.messagingengine.com (Postfix) with ESMTPA id 49F34B832 for ; Fri, 4 Apr 2008 13:21:37 -0400 (EDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Fri, 04 Apr 2008 09:55:53 -0400") 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:94357 Archived-At: Stefan Monnier writes: >>> I don't see how this would help to decide whether to split a window >>> vertically or horizontally, or to display a buffer in a new window. > >> The order of the splitting functions in the hypothetical >> `split-window-functions' list would express the preference. Each >> function checks if it's applicable (wrt to >> split-{width,height}-threshold) and returns nil, if it's not. > > I still think this is wrong: the choice should be based on > split-window-preferred-aspect-ratio. I cannot imagine how that would work. Especially what would prevent splitting to create windows which are too narrow? Bye, Tassilo