unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: Bug-Gnu-Emacs <bug-gnu-emacs@gnu.org>,
	Drew Adams <drew.adams@Oracle.com>
Subject: Re: frame-pixel-(width|height) is incorrect
Date: Fri, 21 Dec 2007 10:46:12 +0000	[thread overview]
Message-ID: <5A77E856-4AAF-4D76-9E90-E0C8B0B715B8@gmail.com> (raw)
In-Reply-To: <476B84B3.3080606@gnu.org>

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.








  reply	other threads:[~2007-12-21 10:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 22:49 frame-pixel-(width|height) is incorrect Drew Adams
2007-12-21  9:17 ` Jason Rumney
2007-12-21 10:46   ` David Reitter [this message]
2007-12-21 10:50     ` Jason Rumney
2007-12-21 18:41       ` David Reitter
2007-12-28  0:14   ` Drew Adams
2007-12-28 13:56     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5A77E856-4AAF-4D76-9E90-E0C8B0B715B8@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=drew.adams@Oracle.com \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).