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, 26 Mar 2008 08:40:02 +0100 Message-ID: <47E9FDD2.4010205@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> 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 1206521406 2666 80.91.229.12 (26 Mar 2008 08:50:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2008 08:50:06 +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 Mar 26 09:50:36 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 1JeRLA-00022N-AW for ged-emacs-devel@m.gmane.org; Wed, 26 Mar 2008 09:50:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeRKZ-0005o3-1o for ged-emacs-devel@m.gmane.org; Wed, 26 Mar 2008 04:49:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JeRJq-0005L1-Km for emacs-devel@gnu.org; Wed, 26 Mar 2008 04:49:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JeRJp-0005JJ-Ep for emacs-devel@gnu.org; Wed, 26 Mar 2008 04:49:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeRJp-0005J4-7C for emacs-devel@gnu.org; Wed, 26 Mar 2008 04:49:13 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JeRJp-0006MX-4z for emacs-devel@gnu.org; Wed, 26 Mar 2008 04:49:13 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JeRJo-000634-K8 for emacs-pretest-bug@gnu.org; Wed, 26 Mar 2008 04:49:12 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JeRJl-0006LF-QD for emacs-pretest-bug@gnu.org; Wed, 26 Mar 2008 04:49:12 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JeRJl-0006L1-Bi for emacs-pretest-bug@gnu.org; Wed, 26 Mar 2008 04:49:09 -0400 Original-Received: (qmail invoked by alias); 26 Mar 2008 07:49:07 -0000 Original-Received: from N823P021.adsl.highway.telekom.at (EHLO [62.47.46.213]) [62.47.46.213] by mail.gmx.net (mp010) with SMTP; 26 Mar 2008 08:49:07 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18TUQI5rpIT0dj5DOGRMPrcy6gQbHbO+1loYnbxj4 si20hC+y9PpITj 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, seldom 2.4 (older, 4) 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:93505 gmane.emacs.pretest.bugs:21694 Archived-At: > I do think it's a misfeature: Emacs is a bit trigger happy with windows. > When resizing frames/windows, I believe it should generally try to avoid > deleting windows when possible. Patches in this direction are welcome > (we have already improved this, e.g. by replacing the C-x + code, with > the introduction of adjust-window-trailing-edge, ...). Setting `window-min-height' and `window-min-width' to their minimum values _should_ handle that. If it doesn't we have a bug to fix. If it does we might reconsider the default values. >>One aspect that puzzles me is why, when `window-min-height' equals 1, >>Emacs doesn't simply display the window's modeline. > > Between the header-line, the mode-line, and the buffer text itself, > Emacs assumes here that it's more important to show the buffer text. > It may not always be the best choice, but it does make sense. It's a terrible choice IMO because it makes the text of the buffer displayed in an upper window appear part of the buffer displayed in the lower window _without the slightest feedback_. Moreover, it doesn't permit to resize the one-line window by dragging its modeline. >>Another problem is that Emacs doesn't record window sizes accross >>(de-)maximizations. Hence in your ediff control panel example you'd >>have to fix the window-height at 1 in order to handle re-maximization as >>intended :-( > > I'm not sure what better behavior you're thinking of. Ideally, de-maximizing a maximized frame followed by re-maximizing it should restore the previous window sizes.