From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#4543: window-full-height-p Date: Wed, 23 Sep 2009 23:28:34 -0400 Message-ID: Reply-To: Glenn Morris , 4543@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253765243 24604 80.91.229.12 (24 Sep 2009 04:07:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2009 04:07:23 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 24 06:07:16 2009 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.50) id 1Mqfbw-0004Sq-40 for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2009 06:07:16 +0200 Original-Received: from localhost ([127.0.0.1]:46375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqfbv-0001Et-QD for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Sep 2009 00:07:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mqfbr-0001ES-88 for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 00:07:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqfbm-0001C8-MG for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 00:07:10 -0400 Original-Received: from [199.232.76.173] (port=48775 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqfbm-0001Bv-93 for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 00:07:06 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56351) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mqfbl-0005fP-QT for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2009 00:07:06 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8O473TM028497; Wed, 23 Sep 2009 21:07:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8O3o4MS025028; Wed, 23 Sep 2009 20:50:04 -0700 Resent-Date: Wed, 23 Sep 2009 20:50:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 24 Sep 2009 03:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4543 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125376387324042 (code B ref -1); Thu, 24 Sep 2009 03:50:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 24 Sep 2009 03:44:33 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8O3iV8W024039 for ; Wed, 23 Sep 2009 20:44:33 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqfFv-0002Hm-Fv for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 23:44:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqfFp-0002El-GM for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 23:44:31 -0400 Original-Received: from [199.232.76.173] (port=38363 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqfFo-0002EH-Ij for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 23:44:24 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:51859) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqfFo-00024P-5p for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 23:44:24 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mqf0U-0000s3-JX; Wed, 23 Sep 2009 23:28:34 -0400 X-Spook: spies Abbas ANC munitions Bin Laden Operation Iraqi X-Ran: J6g8!q8O+opUNIo\]JwgyAA;V~u,6@m@oqLa5Yr#}qU;SpWn{1 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:31434 Archived-At: Severity: wishlist I would like a window-full-height-p function, analogous to window-full-width-p. It is difficult to extract this information from frame-height and window-height for pretty much the same reasons as are used in the Elisp manual to justify the existence of window-full-width-p. The value of frame-height depends on the X-toolkit in use, whether there is a minibuffer, and whether the menu- and tool- bars are on (see bug#4535). For example, a quick grep reveals this code in mh-maybe-show in mh-e/mh-show.el, which is wrong in some circumstances for the reasons explained above: (if (not (= (1+ (window-height)) (frame-height))) ;not horizontally split There seem to be a few similar instances. Perhaps some of them should be using window-safely-shrinkable-p or some other test, but there are some times when I really want to know if a window is full-height.