From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#4543: window-full-height-p Date: Sun, 27 Sep 2009 09:49:28 +0200 Message-ID: <4ABF1908.9090804@gmx.at> References: <4ABB19F5.50908@gmx.at> <4ABC73DB.1060308@gmx.at> <83vdj7tlup.fsf@gnu.org> <4ABCBEC7.70901@gmx.at> <4ABDE2C5.2070808@gmx.at> <83vdj6rllk.fsf@gnu.org> <4ABE1A25.7050909@gmx.at> <83pr9dsmbd.fsf@gnu.org> <4ABE6510.90508@gmx.at> <83k4zlsboz.fsf@gnu.org> Reply-To: martin rudalics , 4543@emacsbugs.donarmstrong.com 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 1254038847 15974 80.91.229.12 (27 Sep 2009 08:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Sep 2009 08:07:27 +0000 (UTC) Cc: 4543@emacsbugs.donarmstrong.com, monnier@IRO.UMontreal.CA To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 27 10:07:19 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mromt-00036A-9X for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Sep 2009 10:07:19 +0200 Original-Received: from localhost ([127.0.0.1]:36776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mroms-0003Nz-Jv for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Sep 2009 04:07:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mromm-0003Nu-Gv for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2009 04:07:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mromi-0003NZ-PY for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2009 04:07:12 -0400 Original-Received: from [199.232.76.173] (port=59270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mromi-0003NW-MP for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2009 04:07:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34849) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mromi-0003Gd-2B for bug-gnu-emacs@gnu.org; Sun, 27 Sep 2009 04:07:08 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8R876fS019991; Sun, 27 Sep 2009 01:07:06 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8R7t5SV017522; Sun, 27 Sep 2009 00:55:05 -0700 Resent-Date: Sun, 27 Sep 2009 00:55:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 27 Sep 2009 07:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4543 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4543-submit@emacsbugs.donarmstrong.com id=B4543.125403777816786 (code B ref 4543); Sun, 27 Sep 2009 07:55:05 +0000 Original-Received: (at 4543) by emacsbugs.donarmstrong.com; 27 Sep 2009 07:49:38 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n8R7naCa016783 for <4543@emacsbugs.donarmstrong.com>; Sun, 27 Sep 2009 00:49:38 -0700 Original-Received: (qmail invoked by alias); 27 Sep 2009 07:49:30 -0000 Original-Received: from 62-47-60-3.adsl.highway.telekom.at (EHLO [62.47.60.3]) [62.47.60.3] by mail.gmx.net (mp017) with SMTP; 27 Sep 2009 09:49:30 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19mhKZL8TNmEDHM+oblgV8C7/9QZJw0uztOQbQZBp fVehdJzmRJ28VM User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83k4zlsboz.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 27 Sep 2009 04:07:12 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31546 Archived-At: > We are looping: the more complex window configurations are irrelevant > for the root window, I think. Because I tried to come up with a simple, easily repeatable example that does not need a more complex configuration. > What I'm missing is how the code fragments you show are related to the > problematic behavior when `scroll-bar-mode' is toggled. Since I never understood the mechanism handling frame parameters I can only conjecture that it's x_set_scroll_bar_width (the handler for the scroll-bar-width parameter) calling change_frame_size which causes this. But the basic problem is that handling scroll bar sizes on the frame level cannot make sense because the mechanism doing that wouldn't know (1) whether an individual window has scrollbars and how large they are, (2) the number of side-by-side windows in any horizontal bisection of the frame. Even if that knowledge were present, there still remain configurations where adjusting the frame size can't DTRT. Consider the following two examples with slightly "more complex configurations": Example 1: Split the window of a single-window frame into two windows one above the other and remove the scrollbar in _one_ of the emanating windows. Toggle scroll-bar-mode. Whatever toggling does to adjust the frame size it will be wrong for one of the windows. Example 2: Split the window of a single-window frame into two windows one above the other. Now split the upper window into two side-by-side windows. If you now toggle scroll-bar-mode and try to correctly account for the scrollbars in the side-by-side windows, the lower window will grow or shrink by an additional column. martin