From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: split-window-preferred-function Date: Fri, 04 Apr 2008 01:52:28 +0300 Organization: JURTA Message-ID: <87iqyyitwd.fsf@jurta.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> <47F47DE4.1060101@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207264142 6853 80.91.229.12 (3 Apr 2008 23:09:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2008 23:09:02 +0000 (UTC) Cc: rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 04 01:09:32 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 1JhYYk-0003oa-K9 for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 01:09:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhYY8-0005t4-2o for ged-emacs-devel@m.gmane.org; Thu, 03 Apr 2008 19:08:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhYY2-0005rs-Fe for emacs-devel@gnu.org; Thu, 03 Apr 2008 19:08:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhYY1-0005rC-3S for emacs-devel@gnu.org; Thu, 03 Apr 2008 19:08:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhYY0-0005r9-Um for emacs-devel@gnu.org; Thu, 03 Apr 2008 19:08:44 -0400 Original-Received: from relay03.kiev.sovam.com ([62.64.120.201]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JhYXw-0003PJ-SK; Thu, 03 Apr 2008 19:08:41 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JhYXt-000DR2-5F; Fri, 04 Apr 2008 02:08:37 +0300 In-Reply-To: <47F47DE4.1060101@gmx.at> (martin rudalics's message of "Thu, 03 Apr 2008 08:49:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: e35cef5ed21d82303c208435479e4a86 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 2566 [Apr 04 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: none X-SpamTest-Rate: 10 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) 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:94295 Archived-At: > Currently `display-buffer' would not split the left window vertically > because it is not full-width. With `split-width-threshold' > > && (WINDOW_FULL_WIDTH_P (XWINDOW (window))) > > we could write something like > > (>= (window-width window) (/ split-width-threshold 2)) > > hence `split-width-threshold' would serve the dual role to allow > splitting a window horizontally when it's at least that wide and > vertically when it's at least half that wide (due to a preceding > horizontal split maybe). Yes, `split-width-threshold' might help in these situations. But I think its default value should not be such large value as `split-height-threshold' has. However, for the default behavior of vertical splitting this large default value seems right. This means there is a difference in semantics of `split-height-threshold' and `split-width-threshold'. IOW, they are NOT complete equivalents rotated 90 degrees. -- Juri Linkov http://www.jurta.org/emacs/