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: Tue, 08 Nov 2011 19:12:36 +0100 Message-ID: <4EB97114.3000709@gmx.at> References: <87vcquy7jn.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 1320775982 472 80.91.229.12 (8 Nov 2011 18:13:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2011 18:13:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 08 19:12:56 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 1RNqAC-0001vy-BP for ged-emacs-devel@m.gmane.org; Tue, 08 Nov 2011 19:12:48 +0100 Original-Received: from localhost ([::1]:43287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNqAB-0005yW-P7 for ged-emacs-devel@m.gmane.org; Tue, 08 Nov 2011 13:12:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNqA9-0005y0-4c for emacs-devel@gnu.org; Tue, 08 Nov 2011 13:12:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNqA7-000534-DZ for emacs-devel@gnu.org; Tue, 08 Nov 2011 13:12:45 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:49700) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RNqA6-00051z-Vq for emacs-devel@gnu.org; Tue, 08 Nov 2011 13:12:43 -0500 Original-Received: (qmail invoked by alias); 08 Nov 2011 18:12:38 -0000 Original-Received: from 62-47-42-96.adsl.highway.telekom.at (EHLO [62.47.42.96]) [62.47.42.96] by mail.gmx.net (mp009) with SMTP; 08 Nov 2011 19:12:38 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/reu8mbUTrtm4PzeUSJcft/sfdnhuRSWsyhWL2vs nrOZ3V63bLQNlQ User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87vcquy7jn.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:145950 Archived-At: > (window-resizable WINDOW DELTA &optional HORIZONTAL IGNORE TRAIL NOUP > NODOWN) > > Return DELTA if WINDOW can be resized vertically by DELTA lines. > ... > Optional argument NODOWN non-nil means don't check whether WINDOW > and its child windows can be resized. > > I don't understand the NODOWN argument. When NODOWN is non-nil, the > docstring says the function doesn't check whether WINDOW can be resized. > So what else is it doing instead? 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. martin