From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: split-window-preferred-function Date: Wed, 02 Apr 2008 10:53:22 +0200 Message-ID: <47F34982.2000706@gmx.at> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207126495 14423 80.91.229.12 (2 Apr 2008 08:54:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2008 08:54:55 +0000 (UTC) Cc: Juri Linkov , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 02 10:55: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 1Jgykf-0001Zy-Mg for ged-emacs-devel@m.gmane.org; Wed, 02 Apr 2008 10:55:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgyk3-000862-Dy for ged-emacs-devel@m.gmane.org; Wed, 02 Apr 2008 04:54:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgyiL-00073A-PY for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:53:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JgyiK-000727-01 for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:53:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgyiJ-000721-Jw for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:52:59 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JgyiI-0002ik-Vb for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:52:59 -0400 Original-Received: (qmail invoked by alias); 02 Apr 2008 08:52:57 -0000 Original-Received: from 62-47-39-5.adsl.highway.telekom.at (EHLO [62.47.39.5]) [62.47.39.5] by mail.gmx.net (mp002) with SMTP; 02 Apr 2008 10:52:57 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX181AK0yHCs1iLrH2HbMVxNuDWZdtvux7Ss9vLM36v yFKwDtlHX+VpsK User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:94177 Archived-At: > This change could involve exposing whatever else is needed. I'm not yet sure how to handle the following two: || (NILP (XWINDOW (window)->parent)) and if (!NILP (XWINDOW (window)->prev)) other = upper = XWINDOW (window)->prev; if (!NILP (XWINDOW (window)->next)) other = XWINDOW (window)->next, upper = window; ... I initially planned to use `window-edges' to check whether two windows are "arrayed" in some sense. That's not quite accurate when window edges match but the involved windows have different parents. Hence enlarge_window could affect other windows and the overall behavior of `display-buffer' might change. XEmacs handles this by exposing `window-parent', `window-next', ... to Elisp. This would, however, contradict the Emacs ideology that Elisp code should never see a non-leaf window. In particular, we would have to rewrite things like `adjust-window-trailing-edge' which currently chokes on non-leaf windows. BTW, do we want a `split-width-threshold'?