From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Miles Bader <miles@gnu.org>
Cc: martin rudalics <rudalics@gmx.at>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: window-body-height vs window-text-height
Date: Tue, 28 Oct 2008 10:12:41 -0400 [thread overview]
Message-ID: <jwv4p2w3j5w.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <buofxmh55zd.fsf@dhapc248.dev.necel.com> (Miles Bader's message of "Tue, 28 Oct 2008 20:11:50 +0900")
>> 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.]
Now I'm confused. IIUC window sizes can only be multiples of the
default face size, so the number of lines (assuming the default face)
can only be a whole number and can never include partial lines, no?
Stefan
next prev parent reply other threads:[~2008-10-28 14:12 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
2008-10-28 12:37 ` martin rudalics
2008-10-28 15:11 ` Drew Adams
2008-10-28 14:12 ` Stefan Monnier [this message]
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=jwv4p2w3j5w.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=miles@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).