all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Tim Visher'" <tim.visher@gmail.com>,
	"'emacs'" <help-gnu-emacs@gnu.org>
Subject: RE: Help with Frame Size
Date: Fri, 22 May 2009 16:52:03 -0700	[thread overview]
Message-ID: <13342035A4C94867A27F58DAE699DA86@us.oracle.com> (raw)
In-Reply-To: <c115fd3c0905221622m1f6ba15fq38e538d80a71a@mail.gmail.com>

> I want to have my default frame be 150xfullheight.  I know this has
> been brought up here before.  I don't think it's ever necessarily been
> answered satisfactorily.  I want the solution to work on both OS X
> using macports's emacs-app package and GNU Emacs 22.3 windows distro
> on Windows XP.

Use `set-frame-size'. It takes a number of lines as its second arg. Use
`frame-char-height' to get the height of a single line, in pixels. Use
`x-display-pixel-height' to get the height of your screen, in pixels. With these
things, you should be able to do what you want.

If `winmgr-display-available-pixel-bounds' is defined on your platform, then see
(nth 3 (winmgr-display-available-pixel-bounds)). That might be what you want to
use, instead of `x-display-pixel-height'.

Library `fit-frame.el' uses these things - you can get an idea from its code.
http://www.emacswiki.org/emacs/fit-frame.el

HTH.





      reply	other threads:[~2009-05-22 23:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22 23:22 Help with Frame Size Tim Visher
2009-05-22 23:52 ` Drew Adams [this message]

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=13342035A4C94867A27F58DAE699DA86@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tim.visher@gmail.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.