help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get the window height in lines, taking in account line-spac


From: Michael Heerdegen
Subject: Re: How do I get the window height in lines, taking in account line-spacing?
Date: Tue, 05 Aug 2014 13:55:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Dmitry <dgutov@yandex.ru> writes:

> Looks like this isn't good enough either: if the window is longer than
> the buffer, the value we get this way only reflects the number of
> lines in the buffer.

Maybe working with pixel coordinates is better suited for your case,
e.g. use `posn-x-y' (for the event position),
`window-inside-pixel-edges'.  Can you calculate how long your menu will
be, measured in pixels?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]