all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruce Ingalls <bingalls.NO_SPAM@fit-zones.com>
Subject: desktop height?
Date: Tue, 28 Jan 2003 06:47:38 GMT	[thread overview]
Message-ID: <eIpZ9.54420$Oj7.11699754@twister.nyc.rr.com> (raw)

Does anyone know a way to calculate the height of the desktop in elisp?

I'd like Emacs to start up with maximum height.
For that matter, I'd like XEmacs, and various OSes to work.

In Linux X Window, the following works reasonably well:

(/ (- (x-display-pixel-height) 50) (frame-char-height)))

I can get reasonably close with

(/ (x-display-pixel-height)
  (* (/ (font-default-size-for-device) 2) 3))

which works in w32 XEmacs as

(/ (x-display-pixel-height)
  (* (/ (string-to-number (font-default-size-for-device)) 2) 3))

or w32 Emacs as

(/ (x-display-pixel-height) 18)

I'd also like to hear of testing on other OSes.
If someone has a better solution, please send it!
Thanks ahead.

             reply	other threads:[~2003-01-28  6:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-28  6:47 Bruce Ingalls [this message]
2003-01-28 14:27 ` desktop height? Phillip Lord
2003-01-28 18:32   ` Bruce Ingalls
2003-01-28 18:48     ` Phillip Lord
2003-01-28 21:09       ` Bruce Ingalls
2003-01-31  8:07     ` Lee Sau Dan
2003-01-30 14:40 ` Chris McMahan
2003-01-31  0:11   ` Bruce Ingalls
2003-01-31 13:48     ` Chris McMahan

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

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

  git send-email \
    --in-reply-to='eIpZ9.54420$Oj7.11699754@twister.nyc.rr.com' \
    --to=bingalls.no_spam@fit-zones.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.