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#7822: 24.0.50; `fit-window-to-buffer': take display artefacts into account Date: Wed, 12 Jan 2011 07:11:24 -0800 Message-ID: <476E17C645D142EEB115E2021ACAD92F@us.oracle.com> References: <7A4D04DE08AE47B8B59F98C7D0215CAD@us.oracle.com> 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 1294845867 3680 80.91.229.12 (12 Jan 2011 15:24:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 15:24:27 +0000 (UTC) Cc: 7822@debbugs.gnu.org To: "'Lennart Borgman'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 12 16:24:22 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 1Pd2Yf-0002ld-T3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 16:24:22 +0100 Original-Received: from localhost ([127.0.0.1]:34144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd2Yf-0006b8-Fr for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 10:24:21 -0500 Original-Received: from [140.186.70.92] (port=57181 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd2Ya-0006aq-9q for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 10:24:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd2YY-0006b9-PZ for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 10:24:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd2YY-0006b3-Ng for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 10:24:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pd2Fy-0006yC-8Q; Wed, 12 Jan 2011 10:05:02 -0500 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: Wed, 12 Jan 2011 15:05: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.129484467626756 (code B ref 7822); Wed, 12 Jan 2011 15:05:02 +0000 Original-Received: (at 7822) by debbugs.gnu.org; 12 Jan 2011 15:04: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 1Pd2FX-0006xU-Oq for submit@debbugs.gnu.org; Wed, 12 Jan 2011 10:04:36 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pd2FV-0006xC-Qr for 7822@debbugs.gnu.org; Wed, 12 Jan 2011 10:04:34 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p0CFC2NJ020874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Jan 2011 15:12:03 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p0CDrp08026282; Wed, 12 Jan 2011 15:11:59 GMT Original-Received: from abhmt021.oracle.com by acsmt355.oracle.com with ESMTP id 919154581294845087; Wed, 12 Jan 2011 07:11:27 -0800 Original-Received: from dradamslap1 (/10.159.223.199) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 Jan 2011 07:11:26 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcuyTJbz9U678X8bSlumvZ5aprTROQAHgCow X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 Jan 2011 10:05: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:43293 Archived-At: > 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. The window for the buffer should be resized to fit the displayed buffer, period. If that is not possible for some reason, then we decide what to do. 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. Why is this case any different from other resizing cases? AFAICT, all that's involved here is to determine the desired window size. Beyond that, there should be nothing new.