all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Side effects in `tooltip-show'
Date: Mon, 17 Jan 2022 21:00:46 +0800	[thread overview]
Message-ID: <87h7a27c01.fsf@yahoo.com> (raw)
In-Reply-To: <83pmoqwn3m.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 17 Jan 2022 14:41:49 +0200")

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	other threads:[~2022-01-17 13:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87czkr87yv.fsf.ref@yahoo.com>
2022-01-17  1:30 ` Side effects in `tooltip-show' Po Lu
2022-01-17 12:41   ` Eli Zaretskii
2022-01-17 13:00     ` Po Lu [this message]
2022-01-17 13:21       ` Eli Zaretskii
2022-01-17 13:29         ` Po Lu
2022-01-17 13:40           ` Eli Zaretskii
2022-01-17 13:41             ` Po Lu
2022-01-18  7:23   ` Pankaj Jangid
2022-01-18  7:55     ` Po Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7a27c01.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.