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: Sat, 12 Jun 2010 16:16:25 +0200 Message-ID: <4C1396B9.6080705@gmx.at> References: <4C12383E.5030405@gmx.at> <4C133EBB.5090702@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276355320 15608 80.91.229.12 (12 Jun 2010 15:08:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 15:08:40 +0000 (UTC) Cc: 6385@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 12 17:08:38 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 1ONSJV-0005Z6-9k for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 17:08:37 +0200 Original-Received: from localhost ([127.0.0.1]:46701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONSHM-0003RF-HH for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 11:05:48 -0400 Original-Received: from [140.186.70.92] (port=39029 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONS7Q-0001GD-1D for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 10:55:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONRh7-0003WS-T8 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 10:28:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41594) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONRh7-0003WL-Qb for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 10:28:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ONRW9-0001xo-Th; Sat, 12 Jun 2010 10:17:01 -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: Sat, 12 Jun 2010 14:17:01 +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.12763521967536 (code B ref 6385); Sat, 12 Jun 2010 14:17:01 +0000 Original-Received: (at 6385) by debbugs.gnu.org; 12 Jun 2010 14:16:36 +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 1ONRVj-0001xV-Sn for submit@debbugs.gnu.org; Sat, 12 Jun 2010 10:16:36 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1ONRVh-0001xM-5k for 6385@debbugs.gnu.org; Sat, 12 Jun 2010 10:16:34 -0400 Original-Received: (qmail invoked by alias); 12 Jun 2010 14:16:26 -0000 Original-Received: from 62-47-60-120.adsl.highway.telekom.at (EHLO [62.47.60.120]) [62.47.60.120] by mail.gmx.net (mp054) with SMTP; 12 Jun 2010 16:16:26 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19gEAkiYVFgbAgu9S0k7Q+PVrqN3PVKi67ya/kXVp L7qv5R6XAD5C8G 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: Sat, 12 Jun 2010 10:17:01 -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:37727 Archived-At: >> Deleting other windows when resizing was a misguided feature. I don't >> do that any more for quite some time and didn't miss it yet ;-) > > Did you rewrite fit-window-to-buffer or do you have another function for this? I wrote my own windows resizing functions mostly in Elisp. > Yes, but what it handled was that it prevented a window to grow over > the buffers size. If your concern is that enlarging the window of a temporary buffer can delete other windows then doing what you propose would handle just a few cases. > But I do not know why the window grow bigger than the buffer. The while loop at the end of `fit-window-to-buffer' is not sane. Here I still have it wrapped in a `condition-case' because in some pathological cases it can throw an error. martin