From: Dmitry Gutov <dgutov@yandex.ru>
To: John W Higgins <wishdev@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How do I get the window height in lines, taking in account line-spacing?
Date: Mon, 04 Aug 2014 23:16:14 +0400 [thread overview]
Message-ID: <53DFDBFE.5020902@yandex.ru> (raw)
In-Reply-To: <CAPhAwGyGvNy5rUf2M9jaE=kBrtZNDo_Ey+F6Oq2VqzZB+OoKEA@mail.gmail.com>
On 08/04/2014 10:43 PM, John W Higgins wrote:
> It would appear for the purpose of the issue you are discussing that a
> smaller number would not matter because at worst you would put the popup
> above the line for 2 extra rows.
True, that drawback is not critical.
> That would, to me at least, be
> irrelevant to solving the problem. I appreciate the need for accuracy -
> but this would at least fail in a good way for you.
That might be so, but I'm already solving a non-critical problem:
drawing popup better for users who customized the line-spacing value,
which is a relatively rare thing to do, I believe.
So as long as I'm doing that, I might as well look for a good solution.
> I'm assuming you have not discovered a scenario where the calculation,
> for example, comes up with 50.5 lines for 49 actual visible lines.
Indeed, I haven't.
next prev parent reply other threads:[~2014-08-04 19:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 12:11 How do I get the window height in lines, taking in account line-spacing? Dmitry Gutov
2014-08-04 14:17 ` Michael Heerdegen
2014-08-04 18:31 ` Dmitry
[not found] ` <CAPhAwGyGvNy5rUf2M9jaE=kBrtZNDo_Ey+F6Oq2VqzZB+OoKEA@mail.gmail.com>
2014-08-04 19:16 ` Dmitry Gutov [this message]
[not found] ` <mailman.6572.1407179803.1147.help-gnu-emacs@gnu.org>
2014-08-05 0:11 ` Emanuel Berg
2014-08-05 0:45 ` Dmitry
2014-08-05 1:41 ` Dmitry
2014-08-05 1:42 ` Dmitry
2014-08-05 11:55 ` Michael Heerdegen
2014-08-05 12:11 ` Dmitry
2014-08-05 12:22 ` Michael Heerdegen
2014-08-06 13:56 ` Dmitry
2014-08-06 14:47 ` Eli Zaretskii
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=53DFDBFE.5020902@yandex.ru \
--to=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
--cc=wishdev@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.