From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Resizing may delete windows Date: Tue, 25 Mar 2008 21:55:55 -0400 Message-ID: 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=us-ascii X-Trace: ger.gmane.org 1206496576 3307 80.91.229.12 (26 Mar 2008 01:56:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2008 01:56:16 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, "Jan D." , "Lennart Borgman \(gmail\)" , Michael Kifer To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 26 02:56:46 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 1JeKse-0000vM-5F for ged-emacs-devel@m.gmane.org; Wed, 26 Mar 2008 02:56:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeKs3-0006KM-0d for ged-emacs-devel@m.gmane.org; Tue, 25 Mar 2008 21:56:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JeKry-0006IQ-N8 for emacs-devel@gnu.org; Tue, 25 Mar 2008 21:56:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JeKrx-0006FP-00 for emacs-devel@gnu.org; Tue, 25 Mar 2008 21:56:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeKrw-0006FF-Sb for emacs-devel@gnu.org; Tue, 25 Mar 2008 21:56:00 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JeKrw-00030l-DE for emacs-devel@gnu.org; Tue, 25 Mar 2008 21:56:00 -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 1JeKrw-0002UH-2J for emacs-pretest-bug@gnu.org; Tue, 25 Mar 2008 21:56:00 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JeKrs-0002up-Kk for emacs-pretest-bug@gnu.org; Tue, 25 Mar 2008 21:55:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JeKrs-0002u5-8l for emacs-pretest-bug@gnu.org; Tue, 25 Mar 2008 21:55:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8FAJdJ6UdMCrTo/2dsb2JhbACBWqkD X-IronPort-AV: E=Sophos;i="4.25,555,1199682000"; d="scan'208";a="16666320" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 25 Mar 2008 21:55:55 -0400 Original-Received: from pastel.home ([76.10.180.232]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id GED77355; Tue, 25 Mar 2008 21:55:55 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 547147F9E; Tue, 25 Mar 2008 21:55:55 -0400 (EDT) In-Reply-To: <47E9783C.8060406@gmx.at> (martin rudalics's message of "Tue, 25 Mar 2008 23:10:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:93481 gmane.emacs.pretest.bugs:21691 Archived-At: > The doc-string of `window-min-height' states > *Delete any window less than this tall (including its mode line). > The value is in line units. > Hence it's certainly not a bug. 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, ...). > 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. > 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. Stefan