GNU bug report logs - #18195
24.3.92; window-screen-lines is not accurate

Previous Next

Package: emacs;

Reported by: Dmitry <dgutov <at> yandex.ru>

Date: Tue, 5 Aug 2014 02:01:01 UTC

Severity: normal

Found in version 24.3.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #55 received at 18195 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 18195 <at> debbugs.gnu.org, dgutov <at> yandex.ru
Subject: Re: bug#18195: 24.3.92; window-screen-lines is not accurate
Date: Tue, 05 Aug 2014 17:09:10 +0300
> Date: Tue, 05 Aug 2014 15:57:57 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: dgutov <at> yandex.ru, 18195 <at> debbugs.gnu.org
> 
>  > He can't: we currently don't expose enough information for Lisp
>  > programs to perform layout.  E.g., the metrics of glyphs and lines
>  > that use arbitrary fonts and display images are not easily available
>  > on the Lisp level, and neither are dimensions and line counts of
>  > arbitrary regions of the screen (although you could write some clunky
>  > Lisp to do the latter).  Likewise with dimensions of text in overlays
>  > and display properties, and with images.
>  >
>  > This was never supposed to be needed, and thus was never designed and
>  > implemented.  If we want to allow such jobs from Lisp, we need to
>  > close these gaps.
> 
> Why would `window-text-pixel-size' fail to provide that?

Because there's no way of calculating the pixel size of arbitrary text
(in this case: the list of completion candidates to be popped up
overlaid on the buffer text), except if that text is displayed in some
window.

> It might be a bit clumsy to work with because you have to
> temporarily show another buffer in its window

That _is_ the problem.  Momentarily flashing some text in some window
is not my idea of a good application.  It simply looks like a bug.




This bug report was last modified 10 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.