widget-image-find: Use 'image-load-path' (bug#81140)

* lisp/wid-edit.el (widget-image-find): Use 'image-load-path' (bug#81140).
This commit is contained in:
David Ponce 2026-05-28 11:55:12 +02:00 committed by Sean Whitton
parent 69286be27d
commit 545bbc6ebe

View file

@ -868,7 +868,8 @@ extension (xpm, xbm, gif, jpg, or png) located in
image)
((stringp image)
;; A string. Look it up in relevant directories.
(let* ((load-path (cons widget-image-directory load-path))
(let* ((image-load-path (cons widget-image-directory
image-load-path))
specs)
(dolist (elt widget-image-conversion)
(dolist (ext (cdr elt))