From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#6385: A slightly less aggressive fit-window-to-buffer Date: Mon, 14 Jun 2010 08:49:59 +0200 Message-ID: <4C15D117.4020203@gmx.at> References: <4C12383E.5030405@gmx.at> <4C133EBB.5090702@gmx.at> <4C148E0C.7000201@gmx.at> <7F2242DF262349D8A22BB9285AAADE85@us.oracle.com> <4C14EC69.5000608@gmx.at> <4C151921.3090903@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: dough.gmane.org 1276498731 31370 80.91.229.12 (14 Jun 2010 06:58:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Jun 2010 06:58:51 +0000 (UTC) Cc: 6385@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 14 08:58:48 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OO3d2-0006MT-Me for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jun 2010 08:58:40 +0200 Original-Received: from localhost ([127.0.0.1]:37237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OO3d2-0005cZ-7T for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jun 2010 02:58:40 -0400 Original-Received: from [140.186.70.92] (port=41062 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OO3cr-0005cJ-67 for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 02:58:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OO3cp-0008LL-WC for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 02:58:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33143) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO3cp-0008LD-Ur for bug-gnu-emacs@gnu.org; Mon, 14 Jun 2010 02:58:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OO3Ve-0003oO-L0; Mon, 14 Jun 2010 02:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jun 2010 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6385-submit@debbugs.gnu.org id=B6385.127649821014642 (code B ref 6385); Mon, 14 Jun 2010 06:51:02 +0000 Original-Received: (at 6385) by debbugs.gnu.org; 14 Jun 2010 06:50:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO3Uo-0003o7-Hz for submit@debbugs.gnu.org; Mon, 14 Jun 2010 02:50:10 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OO3Ul-0003nm-Le for 6385@debbugs.gnu.org; Mon, 14 Jun 2010 02:50:09 -0400 Original-Received: (qmail invoked by alias); 14 Jun 2010 06:50:02 -0000 Original-Received: from 62-47-63-155.adsl.highway.telekom.at (EHLO [62.47.63.155]) [62.47.63.155] by mail.gmx.net (mp007) with SMTP; 14 Jun 2010 08:50:02 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+yMcxxQReykVQ+LWsJeqJsK0zpJWl7jm7pn+vOxT I/lsQ8uDxX/A42 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 14 Jun 2010 02:51:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37766 Archived-At: > Sorry, I cannot take the time to try to pare things down to a single small case. > Suffice it to say that I have never run into the problem before Emacs 23. In my > case, this is about `fit-window-to-buffer' - that is where I see the problem. So far I don't have the slightest idea what "the problem" is. I don't even know which window gets deleted: The one showing the buffer whose window shall be fit (in which case it would be interesting to know whether the window shall be shrunk or enlarged), or another window. >> If you have a one line window and an nine lines window in a ten >> lines frame and you want to enlarge the nine lines window by one >> line Emacs 23 will probably delete the one line window. > > That sounds like a bug - it contradicts the doc. Why shouldn't enlargement be > prevented instead, in that case? It's prevented in `adjust-window-trailing-edge'. For `enlarge-window' there's no such rule. The latter's doc-string clearly states: "This function can delete windows if they get too small." martin