all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: tsuucat <tsuucat@icloud.com>
Cc: 50160@debbugs.gnu.org
Subject: bug#50160: 28.0.50; Wrong NSToolbarItem identifier
Date: Thu, 9 Sep 2021 21:59:28 +0100	[thread overview]
Message-ID: <YTp1sD4N16MEEZb7@idiocy.org> (raw)
In-Reply-To: <D2E98284-6B29-4FD2-B0F4-2A55B1B5D4E5@icloud.com>

On Fri, Sep 10, 2021 at 02:33:40AM +0900, tsuucat wrote:
> 
> > Ah, hmm... Perhaps we should append the label text to the hash or
> > something?
> 
> I tried to append the label text to the hash. Most items fixed. But 
> isearch.el uses “undo” icon and “Undo” label for isearch-delete-char item
> so the tool-tip is wrong…
> It is hard to set correct identifier because anyone can create toolbar items 
> dynamically in Emacs lisp.
> 
> I noticed the current toolbaritem problem only matters label and tool-tip.
> Executed commands are not wrong.

I suppose we could concatenate the hashes of all the values that might
matter.

Alternatively maybe we just don't cache the toolbar items? I don't
know if that's worth investigating. My experience with some other
areas of the NS port is that there's a lot of caching and things going
on that doesn't seem to actually save us anything, but the toolbar can
be refreshed very often in the right circumstances, so it may be best
to keep the cache.
-- 
Alan Third





  reply	other threads:[~2021-09-09 20:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-22  2:32 bug#50160: 28.0.50; Wrong NSToolbarItem identifier tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-22 20:09 ` Alan Third
2021-09-09 17:33   ` tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-09 20:59     ` Alan Third [this message]
2021-12-22 20:50       ` Alan Third
2022-08-22 13:54         ` Lars Ingebrigtsen

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=YTp1sD4N16MEEZb7@idiocy.org \
    --to=alan@idiocy.org \
    --cc=50160@debbugs.gnu.org \
    --cc=tsuucat@icloud.com \
    /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.