From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Resizing may delete windows Date: Wed, 02 Apr 2008 10:43:52 +0200 Message-ID: <47F34748.1020604@gmx.at> References: <47E42196.8010302@gmail.com> <47E927F4.4000509@gmx.at> <47E9347C.5000905@gmail.com> <47E94B35.4080507@gmx.at> <47E95C8F.4050604@gmail.com> <47E9783C.8060406@gmx.at> <47E9FDD2.4010205@gmx.at> <47EA83A7.9000305@gmx.at> <47EACE96.8020805@gmx.at> <47EB51BE.5060602@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207126407 14160 80.91.229.12 (2 Apr 2008 08:53:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2008 08:53:27 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, "Jan D." , "Lennart Borgman \(gmail\)" , Michael Kifer To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 02 10:53:58 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JgyjF-00018Y-W4 for ged-emacs-devel@m.gmane.org; Wed, 02 Apr 2008 10:53:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgyid-0007CU-TO for ged-emacs-devel@m.gmane.org; Wed, 02 Apr 2008 04:53:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgyiI-00071C-1e for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:52:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JgyiF-0006zg-Qz for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:52:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgyiF-0006zI-Dz for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:52:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JgyiE-0002hX-Ur for emacs-devel@gnu.org; Wed, 02 Apr 2008 04:52:55 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JgyiE-0002lH-EN for emacs-pretest-bug@gnu.org; Wed, 02 Apr 2008 04:52:54 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JgyiB-0002gQ-Tl for emacs-pretest-bug@gnu.org; Wed, 02 Apr 2008 04:52:54 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JgyiB-0002g0-Dp for emacs-pretest-bug@gnu.org; Wed, 02 Apr 2008 04:52:51 -0400 Original-Received: (qmail invoked by alias); 02 Apr 2008 08:52:49 -0000 Original-Received: from 62-47-39-5.adsl.highway.telekom.at (EHLO [62.47.39.5]) [62.47.39.5] by mail.gmx.net (mp055) with SMTP; 02 Apr 2008 10:52:49 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19HrHhPdEVHhPUDoQ42MzmUGmyC+S7U+HgcmLPvqU zGpZue97QdhU5G User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:94175 gmane.emacs.pretest.bugs:21843 Archived-At: >>I don't understand shrink_windows enough to make it less trigger-happy. >>From the code I only understand that a high value of `window-min-height' >>is an invitation to shoot silly windows. > > Yes, that's indeed how it works now. But it would be good to change it > a bit. And I agree that it's not easy code. I suppose that `shrink_windows' simply has to take into account the presence of modelines when checking the min_size of windows. That's quite tedious to do - I have to alloc a second vector to store the minimum sizes of all involved windows. >>This thread started with an example where a window's height was >>explicitly set to a value smaller than the top-level value of that >>threshold. How should Emacs deal with that? How should Emacs deal with >>`gnus-window-min-height' or `emerge-one-line-window'? > > Indeed, this is even more tricky, but in my opinion the right behavior > is to enforce window-min-height only when a window is > shrunk explicitly or created. When a window is resized as part of some > other resize (e.g. frame-resize), then the window should only be deleted > if we can't preserve its size. Agreed if "if we can't preserve its size" is read as "if we cannot establish the new frame-size by other means".