I am running Gnu Emacs 23.2.1 on XP Pro, and the functions
(x-display-pixel-width)
and
(x-display-pixel-height)
both work fine. They are part of source c and must be present.
Can you run emacs outside of a terminal that it trusts?
Here is the documentation from my current emacs:
x-display-pixel-height is a built-in function in the source code C.
(x-display-pixel-height &optional TERMINAL)
Return the height in pixels of the TERMINAL X-display. The optional TERMINAL argument indicates which display to ask. TERMINAL must be a terminal object, frame, or display name (string). If omitted or not, it means that the selected frame display.
In addition, I have a whole library of convenient functions that will help you when calibrating and moving the emacs frame, if you're interested.
source
share