emacs-devel
[Top][All Lists]
Advanced

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

Re: master 5a125fb5a97 1/2: Update to Org 9.7.3


From: Ihor Radchenko
Subject: Re: master 5a125fb5a97 1/2: Update to Org 9.7.3
Date: Fri, 14 Jun 2024 13:18:02 +0000

Eli Zaretskii <eliz@gnu.org> writes:

>> > Why do you use buffer-text-pixel-size if all you need is the width of
>> > a symbol (which I assume is a character?).  Why not use
>> > font-get-glyphs instead?
>> 
>> (1) I do not know which font.
>
> Emacs knows, and you can ask it (use font-at or somesuch).
>
>> (2) I also need width of a string, not just a symbol. That string may
>>     contain invisible text, which should also be accounted for.
>
> Then how did this yield zero in the case in point?

No idea. Org mode uses (car (buffer-text-pixel-size nil nil t))
Apparently it is 0 in Po Lu's build.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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