From: martin rudalics <rudalics@gmx.at>
To: Chong Yidong <cyd@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: window-resizable confusion
Date: Tue, 08 Nov 2011 19:12:36 +0100 [thread overview]
Message-ID: <4EB97114.3000709@gmx.at> (raw)
In-Reply-To: <87vcquy7jn.fsf@gnu.org>
> (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
next prev parent reply other threads:[~2011-11-08 18:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 15:10 window-resizable confusion Chong Yidong
2011-11-08 18:12 ` martin rudalics [this message]
2011-11-09 6:47 ` Chong Yidong
2011-11-09 9:45 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EB97114.3000709@gmx.at \
--to=rudalics@gmx.at \
--cc=cyd@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.