Function: toolbarx-find-image
toolbarx-find-image is a byte-compiled function defined in
toolbar-x.el.
Signature
(toolbarx-find-image IMAGE)
Documentation
Return image descriptor or glyph for IMAGE.
IMAGE is string. Usually IMAGE neither contains a directory nor
an extension. If the extension is omitted, xpm, xbm and
pbm are tried. If the directory is omitted,
toolbarx-image-path is searched.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/toolbar-x.el
;; Still functions `toolbarx-install-toolbar' and `toolbarx-refresh'to
;; complete the parsing engine. Since they interface with other engines,
;; they must come in the end.
;;; How a image is made, giving a string as (part of) file name.
;; look at function `image-type-available-p' for Emacs !!!!
(defun toolbarx-find-image (image)
"Return image descriptor or glyph for IMAGE.
IMAGE is string. Usually IMAGE neither contains a directory nor
an extension. If the extension is omitted, `xpm', `xbm' and
`pbm' are tried. If the directory is omitted,
`toolbarx-image-path' is searched."
(let ((file))
(dolist (i '("" ".xpm" ".xbm" ".pbm"))
(unless file
(setq file (locate-library (concat image i) t toolbarx-image-path))))
(if file
(create-image file)
(find-image `((:type xpm :file ,(concat image ".xpm"))
(:type xbm :file ,(concat image ".xbm"))
(:type pbm :file ,(concat image ".pbm")))))))