From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: split-window-preferred-function Date: Fri, 04 Apr 2008 16:21:01 -0400 Message-ID: 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> <87y77twn6n.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 1207340488 19667 80.91.229.12 (4 Apr 2008 20:21:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 20:21:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 04 22:22:00 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 1JhsPy-0000CN-GN for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 22:21:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhsPL-0008Df-OG for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 16:21:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhsPH-0008CT-VC for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:21:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhsPG-0008C6-4z for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:21:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhsPG-0008C3-2h for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:21:02 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182] helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JhsPF-0004bf-Ql for emacs-devel@gnu.org; Fri, 04 Apr 2008 16:21:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmgCAIsq9kfO+J/WdGdsb2JhbACBWo9zASqaHg X-IronPort-AV: E=Sophos;i="4.25,606,1199682000"; d="scan'208";a="17842686" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 04 Apr 2008 16:21:01 -0400 Original-Received: from pastel.home ([206.248.159.214]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id KYZ38001; Fri, 04 Apr 2008 16:21:01 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1CA84872B; Fri, 4 Apr 2008 16:21:01 -0400 (EDT) In-Reply-To: <87y77twn6n.fsf@member.fsf.org> (Tassilo Horn's message of "Fri, 04 Apr 2008 19:21:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) 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:94373 Archived-At: >>>> 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? The height and width thresholds would, of course. Stefan