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 11:40:52 +0100 Message-ID: References: <7A4D04DE08AE47B8B59F98C7D0215CAD@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 1294829754 17858 80.91.229.12 (12 Jan 2011 10:55:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 10:55:54 +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 11:55:50 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 1PcyMi-00056t-Tq for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 11:55:45 +0100 Original-Received: from localhost ([127.0.0.1]:40879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcyLU-0007ue-Tw for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 05:54:28 -0500 Original-Received: from [140.186.70.92] (port=40605 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcyLI-0007qq-9b for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 05:54:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcyLG-0003ar-Cv for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 05:54:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcyLG-0003aa-BE for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2011 05:54:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pcy1i-0007yk-EI; Wed, 12 Jan 2011 05:34: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 10:34: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.129482842830651 (code B ref 7822); Wed, 12 Jan 2011 10:34:02 +0000 Original-Received: (at 7822) by debbugs.gnu.org; 12 Jan 2011 10:33:48 +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 1Pcy1U-0007yK-67 for submit@debbugs.gnu.org; Wed, 12 Jan 2011 05:33:48 -0500 Original-Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pcy1P-0007y3-MO for 7822@debbugs.gnu.org; Wed, 12 Jan 2011 05:33:47 -0500 Original-Received: by ewy8 with SMTP id 8so173224ewy.3 for <7822@debbugs.gnu.org>; Wed, 12 Jan 2011 02:41:13 -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=ixbPVDCoWKpbiiHq1jzm2OxReyttcUnf2ze5SYTOl1s=; b=Bu4/ySHPnKOM/Pj3fXhdi+xXhIF1ppt+1UDxMhUifoHxZS2E9BKfc2ivf49QdVzbnV 4FcSgfFptMlvLEWb/OFzKALADfvDrkwfq40EKU4HDXEbnKLLHGoycKQmoJowlJv+X4Wx nUi6spCtgjdDJHLZZasvFFMav1HeuY9UK8YYI= 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=SW2Fhd7wbPEU9a+cmD3zqe7d+OIdEg1aX4CD3M6p3JxRiUcxwBVTPsXv+hGxWiO7vR KOsIh6R+DgXvoX6RBNlYGTKnEMImIog4tXhSvyt2/FuL0BHA7YlUKXpUCggOBsFT+KJj Z3CSYsCciIlC9zz07g/Liam9axlmjmD2F6vSY= Original-Received: by 10.213.10.75 with SMTP id o11mr919195ebo.71.1294828872974; Wed, 12 Jan 2011 02:41:12 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Wed, 12 Jan 2011 02:40:52 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 Jan 2011 05:34: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:43288 Archived-At: On Wed, Jan 12, 2011 at 4:16 AM, Drew Adams wrote: >> Try first to adjust window below and if that is not enough window >> above. > > I looked only at the doc string. =C2=A0Whatever we do for `fit-window-to-= buffer', it > should _not_ take any other windows into account or have any effect on an= y other > windows. =C2=A0This is only about fitting a window to its buffer as displ= ayed. > Whatever effects that might have on other windows are derivative, and not= to be > taken into account in this function. > > It sounds like you are doing something different from what this bug is ab= out. Not really, but your answer makes me realize that my solution above is not enough. And I actually have a better solution in winsize.el, but it is quite a bit more elaborate and probably not what we want. Instead I believe we want a variant of enlarge-window that is not allowed to delete-windows. Building on that we can make a more simple solution.