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


View this message in rfc822 format

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: bug#18195: 24.3.92; window-screen-lines is not accurate
Date: Fri, 08 Aug 2014 12:16:33 +0300
> Date: Fri, 08 Aug 2014 10:41:13 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: dgutov <at> yandex.ru, 18195 <at> debbugs.gnu.org
> 
> Seriously, why should
> 
> (let ((overlay (make-overlay (point-min) (point-max))))
>    (overlay-put overlay 'display "???????")
>    (prog1
>        (window-text-pixel-size)
>      (delete-overlay overlay)))
> 
> cause a "momentarily flashing in the window"?

It shouldn't.  But AFAIU, this is not what is wanted here, because the
problem is where in the buffer to put the overlay.  In the above
example, you put it at point-min, but that position needs to be
_computed_ based on the pixel-size of the text to be put in the
overlay.

IOW, your suggested solution is incomplete, unless you intend the
application to do some iterative process, each time changing the
position where it puts the overlay and adjusting it in the next
iteration based on the results of window-text-pixel-size.




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.