From: Miles Bader <miles@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: window-body-height vs window-text-height
Date: Tue, 28 Oct 2008 20:11:50 +0900 [thread overview]
Message-ID: <buofxmh55zd.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <4906E78C.7050207@gmx.at> (martin rudalics's message of "Tue, 28 Oct 2008 11:21:00 +0100")
martin rudalics <rudalics@gmx.at> writes:
> Can someone tell me the difference between `window-body-height' and
> `window-text-height'? It seems a bit confusing having two function do
> more or less the same thing - but maybe the partial-height lines make
> the difference.
If there is a partial line at the bottom of the window,
window-text-height rounds down, and window-body-height rounds up.
If there are no fractional lines, both return the same value.
[In both cases, the number of lines assumes the default face -- neither
measures what's actually displayed.]
-Miles
--
"I distrust a research person who is always obviously busy on a task."
--Robert Frosch, VP, GM Research
next prev parent reply other threads:[~2008-10-28 11:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 10:21 window-body-height vs window-text-height martin rudalics
2008-10-28 11:11 ` Miles Bader [this message]
2008-10-28 12:37 ` martin rudalics
2008-10-28 15:11 ` Drew Adams
2008-10-28 14:12 ` Stefan Monnier
2008-10-28 15:22 ` Miles Bader
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=buofxmh55zd.fsf@dhapc248.dev.necel.com \
--to=miles@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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).