From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6385: A slightly less aggressive fit-window-to-buffer Date: Sat, 12 Jun 2010 15:03:22 +0200 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276349313 29627 80.91.229.12 (12 Jun 2010 13:28:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 13:28:33 +0000 (UTC) Cc: 6385@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 12 15:28:31 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 1ONQlC-00084l-4A for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 15:28:30 +0200 Original-Received: from localhost ([127.0.0.1]:56394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONQlB-0005zc-G0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 09:28:29 -0400 Original-Received: from [140.186.70.92] (port=36678 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONQl5-0005xd-1X for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:28:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONQl3-0003Jj-Hy for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:28:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34514) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQl3-0003Jf-FF for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:28:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ONQNW-0001Rd-5Q; Sat, 12 Jun 2010 09:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman 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 13:04: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.12763478315547 (code B ref 6385); Sat, 12 Jun 2010 13:04:02 +0000 Original-Received: (at 6385) by debbugs.gnu.org; 12 Jun 2010 13:03:51 +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 1ONQNK-0001RQ-Bk for submit@debbugs.gnu.org; Sat, 12 Jun 2010 09:03:50 -0400 Original-Received: from mail-yw0-f197.google.com ([209.85.211.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQNI-0001RI-45 for 6385@debbugs.gnu.org; Sat, 12 Jun 2010 09:03:48 -0400 Original-Received: by ywh35 with SMTP id 35so1976317ywh.29 for <6385@debbugs.gnu.org>; Sat, 12 Jun 2010 06:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=sm+nEO8VyNHXRSa79O2ZG1WpahxZJZ0t+QAdgzqoplY=; b=W+tZItl0rmvq/Of6JkCwgGuI8Z8hXoc+dR6MeQzkHJiPX/wNMrIiIDGgCyY6FnLk3s sl2Ll83YX/XPbxtG6tk+iaC8G/kV6H30QssRsbG22mCOGpt+nqBNVJXluAripf3ctHhj y2xEf3epJHCdr/4kNnFRY4Oo81MaJx6ITvaco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=LKSQu9OHmomGh88PZ9FFKCF7hz8X+98BAeRO6T2Icx5ddSsP/eBE0RWIR9Ve1MgwpU HlKh+0v+fx5PdN6iYL/kZFkCRrBA/KpM0ZKy4+/1YjdCoThIAg43PMvD3ufqXYG5SkSq D4+WH+YAlXW9peYsXKkaTGlUFd4ub8j22jXcg= Original-Received: by 10.100.245.35 with SMTP id s35mr2825560anh.71.1276347822263; Sat, 12 Jun 2010 06:03:42 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Sat, 12 Jun 2010 06:03:22 -0700 (PDT) In-Reply-To: <4C133EBB.5090702@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Jun 2010 09:04: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:37723 Archived-At: On Sat, Jun 12, 2010 at 10:00 AM, martin rudalics wrote: >> What I saw was the even =C2=A02 lines high buffer made fit-window-to-buf= fer >> delete sibling windows. All the time - but... I thought I knew how to >> reproduce it. So I did not write any test procedures, I was just a bit >> irritated. A mistake. > [...] >> This function killed all other siblings even if it just actually needs >> two lines if certain conditions are met. (Those I tried to describe.) >> >> So this was just a desperate attempt to stop that. I do not know what >> to do at the moment. I will try to reproduce this and look a bit >> closer at it later. > > Deleting other windows when resizing was a misguided feature. =C2=A0I 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 th= is? > In any case, the issue whether a position is visible in a window is a > priori not related to the issue whether resizing is allowed to delete > any windows. =C2=A0You patch might handle a few cases, accidentally ... Yes, but what it handled was that it prevented a window to grow over the buffers size. But I do not know why the window grow bigger than the buffer. It is just that after it happened to me ten times or so I throw in this quick fix - and hoped that you had something more to say about it. If I just had calmed down a bit and investigated it instead... ;-)