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

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

bug#67533: SVG images confound position pixel measurements


From: Eli Zaretskii
Subject: bug#67533: SVG images confound position pixel measurements
Date: Sun, 03 Dec 2023 18:33:05 +0200

> From: JD Smith <jdtsmith@gmail.com>
> Date: Sun, 3 Dec 2023 10:49:37 -0500
> 
> BTW, in case anyone is wondering where window-text-pixel-size with a negative 
> pixel FROM offset is needed, Po Lu's pixel-scroll-precision-up-page is using 
> precisely this approach to measure the content above window-start (so as to 
> smoothly scroll up with high performance):
> 
>         (let* ((start (window-start))
>                (dims (window-text-pixel-size nil (cons start (- delta))
>                                              start nil nil nil t))
> 

I know very well why that feature was added.  My questions was not
about negative offsets in general, but about negative offsets when
FROM is in the first line of the buffer, i.e. when there's no text at
all above that line.





reply via email to

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