diff options
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/icons.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/icons.el b/lisp/emacs-lisp/icons.el index 277b285c2ef..93749a3451e 100644 --- a/lisp/emacs-lisp/icons.el +++ b/lisp/emacs-lisp/icons.el @@ -189,8 +189,10 @@ present if the icon is represented by an image." (cl-defmethod icons--create ((_type (eql 'image)) icon keywords) (let ((file (if (file-name-absolute-p icon) icon - (image-search-load-path icon)))) + (and (fboundp 'image-search-load-path) + (image-search-load-path icon))))) (and (display-images-p) + (fboundp 'image-supported-file-p) (image-supported-file-p file) (propertize " " 'display |