From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#11985: 24.1; fit-window-to-buffer does not grab whole frame Date: Thu, 19 Jul 2012 01:21:26 -0500 Message-ID: <87obnc5l09.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1342678921 28213 80.91.229.3 (19 Jul 2012 06:22:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 06:22:01 +0000 (UTC) To: 11985@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 08:22:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Srk7Z-00023S-KM for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 08:21:57 +0200 Original-Received: from localhost ([::1]:45955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srk7Y-0004AQ-Pr for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 02:21:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srk7W-0004A7-I8 for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:21:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srk7V-0002xt-Kl for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:21:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srk7V-0002xn-H1 for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:21:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrkDS-0008EC-Qu for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:28:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jul 2012 06:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11985 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134267926431602 (code B ref -1); Thu, 19 Jul 2012 06:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Jul 2012 06:27:44 +0000 Original-Received: from localhost ([127.0.0.1]:49335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrkD9-0008Df-H6 for submit@debbugs.gnu.org; Thu, 19 Jul 2012 02:27:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40416) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrkD7-0008DX-Pb for submit@debbugs.gnu.org; Thu, 19 Jul 2012 02:27:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srk79-0002vY-BV for submit@debbugs.gnu.org; Thu, 19 Jul 2012 02:21:32 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srk79-0002vT-7j for submit@debbugs.gnu.org; Thu, 19 Jul 2012 02:21:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srk78-00049c-6E for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:21:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srk77-0002uu-2d for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:21:30 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:60234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srk76-0002uq-VD for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:21:28 -0400 Original-Received: from dhcp207152.uni-regensburg.de ([132.199.207.152]:55655 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Srk76-00024e-Ee for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2012 02:21:28 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62140 Archived-At: Start emacs -Q. Visit a file larger than the current frame. Split the frame, Display other stuff in second window. Select the window with the large file. Eval (fit-window-to-buffer (selected-window)) Expected result: The window should grab the whole frame. From the docstring of fit-window-to-buffer Optional argument MAX-HEIGHT specifies the maximum height of WINDOW and defaults to the height of WINDOW's frame. Remarks: (1) This works as documented with GNU Emacs 23.1. -- Of course, the old behavior was counterintuitive in the sense that the name of fit-window-to-buffer refers to windows, not to frames. But an incompatible change in behavior should be documented. (2) I suggest that the elisp manual should also mention the default values of MAX-HEIGHT and MIN-HEIGHT (as in the docstring). (3) The relation between the new arg OVERRIDE (not present in Emacs 23.1) and window-min-height and window-min-width is not clear to me. If MIN-HEIGHT is non-nil, shouldn't this already ignore window-min-height? Also, if OVERRIDE is nil, what is the relevance of window-min-width? I expect fit-window-to-buffer is supposed to obey window-min-width. But it would clarify things if this was spelled out. In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-06-10 on regnitz Windowing system distributor `The X.Org Foundation', version 11.0.10706000