]> git.eshelyaron.com Git - emacs.git/commit
Cache toolbar icon data paths
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 8 Dec 2020 12:57:44 +0000 (13:57 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 8 Dec 2020 12:57:44 +0000 (13:57 +0100)
commitab4b90723e4664cefef8400e678419e04728b8c2
tree17f1280dc4aa89f0310e17b87ed4bec5108d4ca4
parent19c0afd0adea40dadc4f21c00482cfff9e868399
Cache toolbar icon data paths

* lisp/image.el (find-image): Add an optional CACHE parameter.
(find-image--cache): New variable.

* lisp/tool-bar.el (tool-bar--image-expression): Use cached data
to avoid looking up the image files on each refresh.
lisp/image.el
lisp/tool-bar.el