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: window-resizable confusion Date: Wed, 09 Nov 2011 10:45:06 +0100 Message-ID: <4EBA4BA2.3030406@gmx.at> References: <87vcquy7jn.fsf@gnu.org> <4EB97114.3000709@gmx.at> <87hb2daj1c.fsf@gnu.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: dough.gmane.org 1320831928 29500 80.91.229.12 (9 Nov 2011 09:45:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 09:45:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 09 10:45:24 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RO4ig-0001pk-Ay for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2011 10:45:22 +0100 Original-Received: from localhost ([::1]:42609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO4id-0007Gq-Pe for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2011 04:45:19 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO4iX-0007GU-0o for emacs-devel@gnu.org; Wed, 09 Nov 2011 04:45:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO4iV-0008SE-SB for emacs-devel@gnu.org; Wed, 09 Nov 2011 04:45:12 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:55084) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RO4iV-0008Rv-Ap for emacs-devel@gnu.org; Wed, 09 Nov 2011 04:45:11 -0500 Original-Received: (qmail invoked by alias); 09 Nov 2011 09:45:09 -0000 Original-Received: from 62-47-34-151.adsl.highway.telekom.at (EHLO [62.47.34.151]) [62.47.34.151] by mail.gmx.net (mp007) with SMTP; 09 Nov 2011 10:45:09 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Zw8BviM/ZjypQOnRLd2Kf5bW2DyvQbODXeYvqMS GGES0dAYI0uian User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87hb2daj1c.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145957 Archived-At: > I think the NOUP and NODOWN arguments should be replaced with a single > argument, SUBTREE. If the value is `upper-tree', that would be > equivalent to NODOWN non-nil; if the value is `lower-tree', that would > be equivalent to NOUP non-nil. I'm not sure whether there are cases where I call this with both NOUP and NODOWN non-nil, meaning don't check the argument window's sizes and stay within the argument window's siblings. So this would be a rather hazardous change. Instead I wrote a new function `window--resizable' which is a copy of the old `window-resizable' and rewrote `window-resizable' such that it doesn't have the NOUP and NODOWN arguments (which are only useful for the internal workings of window resizing anyway). It now doesn't have the TRAIL/SIDE argument either which is only needed for implementing `adjust-window-trailing-edge'. Please have a look. I still have to rename a number of window.el internal functions to use the "window--" prefix. martin