From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: Re: frame-pixel-(width|height) is incorrect Date: Fri, 21 Dec 2007 10:46:12 +0000 Message-ID: <5A77E856-4AAF-4D76-9E90-E0C8B0B715B8@gmail.com> References: <476B84B3.3080606@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198233996 30024 80.91.229.12 (21 Dec 2007 10:46:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2007 10:46:36 +0000 (UTC) Cc: Bug-Gnu-Emacs , Drew Adams To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 21 11:46:48 2007 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 1J5fOx-0008TL-OT for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Dec 2007 11:46:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5fOd-0001H5-Uq for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Dec 2007 05:46:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J5fOW-0001FX-BZ for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2007 05:46:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J5fOU-0001DI-27 for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2007 05:46:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5fOT-0001D7-Rt for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2007 05:46:17 -0500 Original-Received: from nf-out-0910.google.com ([64.233.182.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J5fOT-0000wP-D0 for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2007 05:46:17 -0500 Original-Received: by nf-out-0910.google.com with SMTP id f5so33318nfh.26 for ; Fri, 21 Dec 2007 02:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=eD57DU7XOcAOSAZyXnUI5PV6zDUi3KwwS3aOAqcmBYE=; b=Fr33dqiP6YtJaCaP9hbeVA3ckSQj01DZy3AoVEyeXhctwaWj44pn5reAZa/Na/8QGWep6CwKLjxEJKJLq0dCScEAFQuOXbuFe+8yR/abAYMvm1UQKgPsHHbyIYjnCdxrIEpEPiIl2PnnmvjIG/0BTVABNG4PmJdAnx/2myTN8e4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=Ko09IdyRLcC5cyYFoZOgyZOvG6FxJ+pEfUUAkt8/dPOKo15BDzF+Qv3An551SOyTQvnFfgchzchcd1vK81Pmb9B0DJndbm/SS1q7o3W/yfeQncEFS6rdUa+v0trDEmOILg5RlUcNZTUn0IdvpNkIXzy8nZv6w3DgNxB+tL2IkvE= Original-Received: by 10.78.160.2 with SMTP id i2mr1348555hue.53.1198233975813; Fri, 21 Dec 2007 02:46:15 -0800 (PST) Original-Received: from scarlett.lan ( [81.179.82.72]) by mx.google.com with ESMTPS id k5sm2381947nfh.18.2007.12.21.02.46.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Dec 2007 02:46:14 -0800 (PST) In-Reply-To: <476B84B3.3080606@gnu.org> X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:17206 Archived-At: On 21 Dec 2007, at 09:17, Jason Rumney wrote: > Drew Adams wrote: >> emacs -Q >> >> I've checked the pixel size of Emacs frames with a couple of tools on >> Windows, and these functions both return incorrect results: >> frame-pixel-width, frame-pixel-height. >> > They return results consistent with their documentation. frame-pixel-width is correct in the Carbon port. frame-pixel-height returns a value that is too low, as it doesn't contain the title bar. This seems consistent across the platforms, from what I hear, but it is annoying nevertheless. The documentation reads: "This counts only the height available for text lines, not menu bars on window-system Emacs frames." If you count the tool-bar as "available for text lines", and the title bar as part of the non-existant menu bar (on my system), then that is indeed correct. So, either way, it would be useful to have the full height of a frame. Consider that (frame-parameter nil 'top) returns the position of the top edge, and not the y ordinate of the location where text could potentially be displayed in the frame.