GNU bug report logs - #50160
28.0.50; Wrong NSToolbarItem identifier

Previous Next

Package: emacs;

Reported by: tsuucat <tsuucat <at> icloud.com>

Date: Sun, 22 Aug 2021 02:33:01 UTC

Severity: normal

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 50160 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: tsuucat <tsuucat <at> icloud.com>
Cc: 50160 <at> debbugs.gnu.org
Subject: Re: bug#50160: 28.0.50; Wrong NSToolbarItem identifier
Date: Thu, 9 Sep 2021 21:59:28 +0100
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




This bug report was last modified 2 years and 332 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.