emacs-devel
[Top][All Lists]
Advanced

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

Re: Side effects in `tooltip-show'


From: Po Lu
Subject: Re: Side effects in `tooltip-show'
Date: Mon, 17 Jan 2022 21:00:46 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> I'm not happy about consing a new string each time we have a help-echo
> event.  That'd definitely increase the GC pressure, which is
> undesirable.
>
> How about using 'equal' to compare the strings instead?  What are the
> chances that two help-echo strings of 2 different tooltips will
> compare equal without the properties, but not with the properties?

That's fine by me as well, but the resulting minor snafu where the
tooltip might not be updated if the string contents are identical should
be documented somewhere, I think.

Thanks.


reply via email to

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