From: Phillip Lord <p.lord@russet.org.uk>
Subject: Re: desktop height?
Date: 28 Jan 2003 14:27:38 +0000 [thread overview]
Message-ID: <vf65s9pcx1.fsf@rpc71.cs.man.ac.uk> (raw)
In-Reply-To: eIpZ9.54420$Oj7.11699754@twister.nyc.rr.com
>>>>> "Bruce" == Bruce Ingalls <bingalls.NO_SPAM@fit-zones.com> writes:
Bruce> Does anyone know a way to calculate the height of the desktop
Bruce> in elisp?
Bruce> I'd like Emacs to start up with maximum height. For that
Bruce> matter, I'd like XEmacs, and various OSes to work.
Bruce> In Linux X Window, the following works reasonably well:
Bruce> (/ (- (x-display-pixel-height) 50) (frame-char-height)))
Bruce> I can get reasonably close with
Bruce> (/ (x-display-pixel-height)
Bruce> (* (/ (font-default-size-for-device) 2) 3))
Bruce> which works in w32 XEmacs as
Bruce> (/ (x-display-pixel-height)
Bruce> (* (/ (string-to-number (font-default-size-for-device)) 2)
Bruce> 3))
Bruce> or w32 Emacs as
Bruce> (/ (x-display-pixel-height) 18)
Bruce> I'd also like to hear of testing on other OSes. If someone
Bruce> has a better solution, please send it! Thanks ahead.
I used to probe the display to get what is effectively a maximised
emacs, on start up. I stopped doing this because probing in this way
misses things like the Gnome toolbar (which I still want to be
visible).
In recent years I've just gone onto setting it by hand.
Cheers
Phil
next prev parent reply other threads:[~2003-01-28 14:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-28 6:47 desktop height? Bruce Ingalls
2003-01-28 14:27 ` Phillip Lord [this message]
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=vf65s9pcx1.fsf@rpc71.cs.man.ac.uk \
--to=p.lord@russet.org.uk \
/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.