From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.bugs Subject: Re: Frame resizing causes a crash Date: Sun, 12 Oct 2003 01:23:36 +0200 (CEST) Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Message-ID: <20031012064558.NYBC10930.fep04-svc.swip.net@coolsville.localdomain> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1065941312 1582 80.91.224.253 (12 Oct 2003 06:48:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Oct 2003 06:48:32 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Riku Saikkonen , bug-gnu-emacs@gnu.org Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Sun Oct 12 08:48:29 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A8a1l-0006jD-00 for ; Sun, 12 Oct 2003 08:48:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A8Zzy-0000se-Au for gebp-emacs-pretest-bug@gmane.org; Sun, 12 Oct 2003 02:46:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A8Zzt-0000sM-Vi for emacs-pretest-bug@gnu.org; Sun, 12 Oct 2003 02:46:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A8ZzN-0000r7-7S for emacs-pretest-bug@gnu.org; Sun, 12 Oct 2003 02:46:33 -0400 Original-Received: from [130.244.199.132] (helo=fep04-svc.swip.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A8ZzM-0000r4-Ng; Sun, 12 Oct 2003 02:46:00 -0400 Original-Received: from coolsville.localdomain ([213.101.7.195]) by fep04-svc.swip.net with ESMTP id <20031012064558.NYBC10930.fep04-svc.swip.net@coolsville.localdomain>; Sun, 12 Oct 2003 08:45:58 +0200 In-Reply-To: "from Lute Kamstra at Oct 7, 2003 04:30:25 pm" Original-To: Lute Kamstra X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.pretest.bugs:1302 gmane.emacs.bugs:5963 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5963 > rjs@cs.hut.fi (Riku Saikkonen) writes: > > > I reported the following bug here about a week ago, but haven't heard > > anything on it since. Could someone try to reproduce the bug, so that > > I know that it's not only my Emacsen that are at fault? In particular, > > it would be nice to know if the current CVS version has this bug... > > Thank you for your report. I used today's CVS (GTK toolkit) and was > able to reproduce the bugs you describe. I'm not knowledgeable on > redisplay things, though. So we just have to wait until one of the > redisplay hackers has time to work on this. > I've added a new function to calculate window sizes when a frame shrinks. There was a bug in that small windows at the top was resized to a negative value (that means delete this window). The negative value is then used to calculate the position of the next window which is why there was confusion. Also, when a window was deleted because it would be too small, the amount of resize needed was not distributed among the other windows, so the remaining windows where too big for the frame. In this example, Emacs needed to shrink all windows 11 lines, but the smallest one atop was only 4. So instead of shrinking 11*3 + 1 reminder = 34, we got 4 + 11*2 + 1 reminder = 27. Anyway, the new implementation tries to keep the number of windows intact as long as possible, shrinking larger windows instead until we really need to delete a window. Please try this version and see if it looks OK. BTW, this is in CVS head only. Thanks, Jan D.