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:54:29 +0300 Organization: JURTA Message-ID: <87bq4qfyuu.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> <87ve2zo1y5.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 1207264179 6931 80.91.229.12 (3 Apr 2008 23:09:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2008 23:09:39 +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:10:11 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 1JhYZO-0003zr-1e for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2008 01:10:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhYYl-00068u-IE for ged-emacs-devel@m.gmane.org; Thu, 03 Apr 2008 19:09:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhYY3-0005sO-5M for emacs-devel@gnu.org; Thu, 03 Apr 2008 19:08:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhYY1-0005ri-Qh for emacs-devel@gnu.org; Thu, 03 Apr 2008 19:08:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhYY1-0005rf-Ng for emacs-devel@gnu.org; Thu, 03 Apr 2008 19:08:45 -0400 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JhYXx-0003Ph-VU; Thu, 03 Apr 2008 19:08:42 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1JhYXv-000MWi-CY; Fri, 04 Apr 2008 02:08:39 +0300 In-Reply-To: <87ve2zo1y5.fsf@member.fsf.org> (Tassilo Horn's message of "Thu, 03 Apr 2008 09:02:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: f216f799903dddc2f9accd11d8a1fded 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 [0278], 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:94296 Archived-At: >> Splitting them in three parts gives less than 80-column wide windows >> that is not comfortable width to work in most buffers. > > Generally I'd agree that windows with less than 80 columns are not > comfortable, but that's a thing a user should decide. It seems 80 columns is a good default for `split-width-threshold'. >> However, what is very much necessary, and what is still missing in >> `split-window-preferred-horizontally' is the ability to split >> _vertically_ in horizontally split windows. > > Indeed, vertical splitting if horizontal splitting won't work (and the > other way round) would be a good feature. But I had a different > implementation in mind. How about my idea I described in > <871w5oo2qa.fsf@member.fsf.org>? 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. For example: +----------------+--------------------------------+ | | | | 80 columns | 160 columns | | | | | | | | | | | | | +----------------+--------------------------------+ When the right window is wide enough to be split horizontally, and point is in the left window, what is the best to do here? 1. display a buffer in the right window without splitting it; 2. split the wide right window horizontally and display a buffer in a new window; 3. split the left window vertically (this option is preferable for some buffers, e.g. for calendar) And how to express these preferences using user options? -- Juri Linkov http://www.jurta.org/emacs/