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#7822: 24.0.50; `fit-window-to-buffer': take display artefacts into account Date: Wed, 12 Jan 2011 18:55:47 +0100 Message-ID: References: <7A4D04DE08AE47B8B59F98C7D0215CAD@us.oracle.com> <476E17C645D142EEB115E2021ACAD92F@us.oracle.com> 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 1294856815 32222 80.91.229.12 (12 Jan 2011 18:26:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 18:26:55 +0000 (UTC) Cc: 7822@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 12 19:26:49 2011 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 1Pd5PD-0006z3-Dm for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 19:26:47 +0100 Original-Received: from localhost ([127.0.0.1]:56773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd5PA-0006hg-UE for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 13:26:45 -0500 Original-Received: from [140.186.70.92] (port=53095 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd5Mo-0005Bl-Uw for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 13:24:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd5Mn-0004Bv-F9 for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 13:24:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd5Mn-0004Br-DJ for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 13:24:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pd4og-00028F-8W; Wed, 12 Jan 2011 12:49:02 -0500 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: Wed, 12 Jan 2011 17:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7822-submit@debbugs.gnu.org id=B7822.12948545208165 (code B ref 7822); Wed, 12 Jan 2011 17:49:02 +0000 Original-Received: (at 7822) by debbugs.gnu.org; 12 Jan 2011 17:48:40 +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 1Pd4oK-00027d-DI for submit@debbugs.gnu.org; Wed, 12 Jan 2011 12:48:40 -0500 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pd4oI-00027G-1i for 7822@debbugs.gnu.org; Wed, 12 Jan 2011 12:48:38 -0500 Original-Received: by eyd10 with SMTP id 10so432332eyd.3 for <7822@debbugs.gnu.org>; Wed, 12 Jan 2011 09:56:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=6PR/L8RiVmcqSGbBGd1mJFwe513mmK+q8y/iAHgWMVQ=; b=ON0XdY0Mz+5Gq78j4syU8uxWUBTwm3UWyt5W+nPO/5DfpbivwPE6Qm2WfgqMd2td/c fEotSoD8Rlq68wSheNgzbaekKDFou6NQVQw4s0Nr7u4K2OQ7dlTUIUM0k2P42yFaVzj3 ulZM5+OjpFsuDmC745yzi41uWRepDphEhpKWg= 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=opAy/y0tk5uoasnL+XSr4hyXBz8HAzqdFTtP9Uv3Uz+HU0tn+KUEOJZQu1A3w0CbRs TIw3+KfSDzmDqDvpxfB8b0qsXVpRnw64VEVjPS7ou2Erb5Nj9BapTmw9G5zcC9I3uPsT tqN2SuPeBeNBTOa1exef2CieFyMAOO9XtCrUc= Original-Received: by 10.213.29.16 with SMTP id o16mr1477432ebc.58.1294854967914; Wed, 12 Jan 2011 09:56:07 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Wed, 12 Jan 2011 09:55:47 -0800 (PST) In-Reply-To: <476E17C645D142EEB115E2021ACAD92F@us.oracle.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 Jan 2011 12:49:02 -0500 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:43306 Archived-At: On Wed, Jan 12, 2011 at 4:11 PM, Drew Adams wrote: >> To be more clear: I was taking into account to few windows. All >> windows below and above must be taken into account. > > I don't see why _any_ windows should be taken into account. =C2=A0The win= dow for the > buffer should be resized to fit the displayed buffer, period. =C2=A0If th= at is not > possible for some reason, then we decide what to do. Hm. Just because you have to actually do the resizing and that affects other windows and a decision has to be made how? > For that decision, I would imagine that we decide the same way we decide = now > when you try to resize a window to size S and that is not possible. =C2= =A0Why is this > case any different from other resizing cases? Do we really have good ways to easily solve this? Maybe I am missing something? Perhaps you have some specific suggestion for how to do this? Which functions do you think supply the needed features? > AFAICT, all that's involved here is to determine the desired window size. > Beyond that, there should be nothing new. One little detail of course: It should not delete other windows. (If you allow it do delete other windows there are much simpler implementations than the one I am suggesting. Much simpler.)