From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: window-resizable confusion Date: Wed, 09 Nov 2011 14:47:59 +0800 Message-ID: <87hb2daj1c.fsf@gnu.org> References: <87vcquy7jn.fsf@gnu.org> <4EB97114.3000709@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320821301 28460 80.91.229.12 (9 Nov 2011 06:48:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 06:48:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 09 07:48:17 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 1RO1xE-0004y4-M3 for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2011 07:48:12 +0100 Original-Received: from localhost ([::1]:46219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO1xD-0004mZ-PN for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2011 01:48:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO1xB-0004mT-Tw for emacs-devel@gnu.org; Wed, 09 Nov 2011 01:48:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO1xA-000235-H7 for emacs-devel@gnu.org; Wed, 09 Nov 2011 01:48:09 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:42833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO1xA-000231-CO for emacs-devel@gnu.org; Wed, 09 Nov 2011 01:48:08 -0500 Original-Received: from bb116-14-110-22.singnet.com.sg ([116.14.110.22]:45740 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RO1x9-0004Rh-8X; Wed, 09 Nov 2011 01:48:07 -0500 In-Reply-To: <4EB97114.3000709@gmx.at> (martin rudalics's message of "Tue, 08 Nov 2011 19:12:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:145956 Archived-At: martin rudalics writes: > The answer to the question whether a window W can be resized consists of > two parts - a "down" part and an "up" part. In the down part I check > whether resizing would violate the min-/fixed-size restrictions of W or, > if W is internal, the leaf windows of W's subtree. In the up part I > check whether resizing W would violate the min-/fixed-size restrictions > of W's siblings, its parent's siblings, ... > > NODOWN non-nil means do not perform the down part because it's not > needed, for example, when W is deleted or I already know that W or its > subwindows can be given the requested size. > > The doc-string is obviously silly in this respect. If you can do any > better, please try. Otherwise, I'll fix it somehow. 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.