From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#6385: A slightly less aggressive fit-window-to-buffer Date: Sat, 12 Jun 2010 08:21:06 -0700 Message-ID: References: <4C12383E.5030405@gmx.at> <4C133EBB.5090702@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276356519 19004 80.91.229.12 (12 Jun 2010 15:28:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 15:28:39 +0000 (UTC) Cc: 6385@debbugs.gnu.org To: "'martin rudalics'" , "'Lennart Borgman'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 12 17:28:37 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 1ONSdM-0005Y5-JX for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 17:28:33 +0200 Original-Received: from localhost ([127.0.0.1]:48077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONSdM-0002KZ-0X for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 11:28:32 -0400 Original-Received: from [140.186.70.92] (port=38722 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONSdE-0002K1-1R for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 11:28:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONSdC-0004bH-86 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 11:28:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59216) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONSdC-0004b8-5i for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 11:28:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ONSY2-0002SI-2i; Sat, 12 Jun 2010 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" 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 15:23: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.12763561779432 (code B ref 6385); Sat, 12 Jun 2010 15:23:02 +0000 Original-Received: (at 6385) by debbugs.gnu.org; 12 Jun 2010 15:22:57 +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 1ONSXw-0002S5-8A for submit@debbugs.gnu.org; Sat, 12 Jun 2010 11:22:56 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONSXu-0002Rx-BP for 6385@debbugs.gnu.org; Sat, 12 Jun 2010 11:22:54 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5CFMlVf025545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 12 Jun 2010 15:22:48 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5C29E8E017506; Sat, 12 Jun 2010 15:22:46 GMT Original-Received: from abhmt002.oracle.com by acsmt355.oracle.com with ESMTP id 341274441276356062; Sat, 12 Jun 2010 08:21:02 -0700 Original-Received: from dradamslap1 (/141.144.64.21) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 12 Jun 2010 08:21:01 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4C133EBB.5090702@gmx.at> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: AcsKCT3rREUXkFq+Q8OAPMM3DFR11QAJ8IIQ X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090204.4C13A649.000B:SCFMA922111,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Jun 2010 11:23: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:37728 Archived-At: > Deleting other windows when resizing was a misguided feature. I'm very glad to hear you say that, sincerely. > I don't do that any more for quite some time and didn't > miss it yet ;-) FWIW, I still see it happening in: GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-06-07 on 3249CTO And unfortunately, I need my code to work in multiple Emacs versions. It is only for Emacs 23 (.1 and .2 and more recent) that this is a problem - I do not see it happening before 23. So even if you might have a more recent version with a fix I will still need a workaround for use with Emacs 23. Is there a simple way to prevent deletion of other windows when using `fit-window-to-buffer'? So far, I've just been let-binding `min-window-height' to 1 around the call. Other suggestions welcome. The use case of wanting to show as much of a buffer as possible without deleting other windows in the frame, and also shrinking the window to the buffer size when it can all be shown, has got to be a common use case. Also, for the same type of buffer/window (typically a pop-up window such as *Completions*), it would be good to have a simple way to make scrolling not show half a window of blank space after the buffer text, when you scroll near the buffer bottom. IOW, be able to have the end of the buffer act similarly to the beginning: not have the window go beyond eob.