]> git.eshelyaron.com Git - emacs.git/commit
Make tool bar caching more sensible
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 3 May 2022 16:46:05 +0000 (18:46 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 3 May 2022 16:46:13 +0000 (18:46 +0200)
commit99fbf39d61bf5e3d9618eafced92c2284938632d
tree3ca581623288c2746b617005891823e8d47b3146
parent3346b94b73d6694333180c1407c20c2f9c97048d
Make tool bar caching more sensible

* lisp/tool-bar.el (tool-bar-keymap-cache): Make into a non-weak
EQ hash table, which should be faster and not lose the contents
after a GC (bug#43397).
(tool-bar--flush-cache, tool-bar-make-keymap): Use the terminal
only as the key.
(tool-bar-local-item, tool-bar-local-item-from-menu): Flush the
cache after altering the tool bar.
lisp/tool-bar.el