summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-08-22 19:22:27 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-08-22 19:22:33 +0200
commit06d7161476255c77defa119fffa842b7abaa0dcb (patch)
treeaca4376ca4f4f2de9ce86461738802d1f18fff80 /lisp/emacs-lisp
parenta0fa6bd5470413ee7a40486aa89d3a0710c4f356 (diff)
downloademacs-06d7161476255c77defa119fffa842b7abaa0dcb.tar.gz
emacs-06d7161476255c77defa119fffa842b7abaa0dcb.tar.bz2
emacs-06d7161476255c77defa119fffa842b7abaa0dcb.zip
Fix some no-X build warnings
* lisp/cus-edit.el (fringe-bitmap-p): Autoload. * lisp/image.el (clear-image-cache): Declare. * lisp/mouse.el (dnd-begin-file-dram): Autoload. * lisp/thumbs.el (image-supported-file-p): Declare (bug#57342). * lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): * lisp/emacs-lisp/icons.el (icons--create): Avoid warnings on no-X builds.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/icons.el4
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