From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Bug in window resizing? Date: Sun, 18 Sep 2005 16:41:22 +0200 Message-ID: <432D7C92.4090803@student.lu.se> References: <43296649.7000408@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1127055690 23041 80.91.229.2 (18 Sep 2005 15:01:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2005 15:01:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 18 17:01:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EH0fO-0000pM-OL for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2005 17:01:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EH0fN-0004LM-U3 for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2005 11:01:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EH0ei-0004AD-62 for emacs-devel@gnu.org; Sun, 18 Sep 2005 11:00:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EH0eb-00046T-77 for emacs-devel@gnu.org; Sun, 18 Sep 2005 11:00:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EH0eZ-0003vB-IE for emacs-devel@gnu.org; Sun, 18 Sep 2005 11:00:27 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EH0MB-0006Uk-4z; Sun, 18 Sep 2005 10:41:27 -0400 Original-Received: from [192.168.123.121] (83.249.205.211) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E2900EF4572; Sun, 18 Sep 2005 16:41:26 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: rms@gnu.org In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43057 Archived-At: Richard M. Stallman wrote: >I will eventually work on this if nobody else does first. >But I hope someone else will debug it, so I don't have to. > > I do not know if this helps, but the flaw is in the logic, not in any details. Consider the case I looked at, ie the windows after C-x 2, C-x 3, C-x 2. The selected window now has a bottom border that is divided horizontally. I think this is not taken into account in enlarge_window, which at a quick glance just seems to consider the selected window's siblings. What is needed (I believe) is to go up one level in the split tree, find the window under the selected window and then resize this. Or maybe it is even more complicated than that? I do not think however that I am the right person to try to fix this now.