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: Tue, 25 Mar 2008 19:57:57 +0100 Message-ID: <47E94B35.4080507@gmx.at> References: <47E42196.8010302@gmail.com> <47E927F4.4000509@gmx.at> <47E9347C.5000905@gmail.com> 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 1206471478 14437 80.91.229.12 (25 Mar 2008 18:57:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 18:57:58 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, "Jan D." , Michael Kifer To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 25 19:58:28 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 1JeELP-0007o9-W1 for ged-emacs-devel@m.gmane.org; Tue, 25 Mar 2008 19:58:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeEKo-0000Ut-Rs for ged-emacs-devel@m.gmane.org; Tue, 25 Mar 2008 14:57:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JeEKl-0000Uo-9b for emacs-devel@gnu.org; Tue, 25 Mar 2008 14:57:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JeEKj-0000UY-QQ for emacs-devel@gnu.org; Tue, 25 Mar 2008 14:57:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeEKj-0000UP-KN for emacs-devel@gnu.org; Tue, 25 Mar 2008 14:57:17 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JeEKj-0004yz-9N for emacs-devel@gnu.org; Tue, 25 Mar 2008 14:57:17 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JeEKi-0001x2-U4 for emacs-pretest-bug@gnu.org; Tue, 25 Mar 2008 14:57:16 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JeEKf-0004y9-S8 for emacs-pretest-bug@gnu.org; Tue, 25 Mar 2008 14:57:16 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JeEKf-0004xr-Cv for emacs-pretest-bug@gnu.org; Tue, 25 Mar 2008 14:57:13 -0400 Original-Received: (qmail invoked by alias); 25 Mar 2008 18:57:12 -0000 Original-Received: from M3137P006.adsl.highway.telekom.at (EHLO [88.117.40.6]) [88.117.40.6] by mail.gmx.net (mp026) with SMTP; 25 Mar 2008 19:57:12 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/4+BI2hxT4dKG5jD1MXepa3fbRBrTZ0wOMp1ysGK L8ayjHnDHgYRFA User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <47E9347C.5000905@gmail.com> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:93432 gmane.emacs.pretest.bugs:21686 Archived-At: >> > > To see this, maximize a window and do >> > > >> > > (let ((window-min-height 1)) (split-window-vertically 2)) >> > > >> > > Then make this window normal size and see what happens. >> >> This doesn't show anything. `window-min-height' can have any value when >> the "make this window normal size" happens. Unfortunately, doing > > > You mean it happens async? I don't understand. In your example you bind `window-min-height' to 1 only while you split the window. When you resize the frame the binding is not effective - presumably the top-level value is used instead. > Maybe, but in that case I have seen another one too. The layout when I > first saw this was: > > xxxxxxxxx > x x x > x x x > x x x > xxxxxxxxx > x x > xxxxxxxxx > > Three windows. The bottom 1-line window disappeared. (This was in ediff > with the control panel in the same frame.) Yes, but in general the ediff frame is not maximized when it's created, hence people usually won't see that. I suppose you somehow managed to start with a maximized frame and a one-text-line control panel. When you de-maximize that frame the shrinking mechanism may remove the control panel window provided `window-min-height' evals to the standard value 4. Setting `window-min-height' to 1 when the window wants a modeline is asking for trouble and the documentation should say so. However Emacs should handle this case gracefully.