Function: ezimage-insert-image-button-maybe
ezimage-insert-image-button-maybe is a byte-compiled function defined
in ezimage.el.gz.
Signature
(ezimage-insert-image-button-maybe START LENGTH &optional STRING)
Documentation
Insert an image button based on text starting at START for LENGTH chars.
If buttontext is unknown, just insert that text. If we have an image associated with it, use that image. Optional argument STRING is a string upon which to add text properties.
Source Code
;; Defined in /usr/src/emacs/lisp/ezimage.el.gz
(defun ezimage-insert-image-button-maybe (start length &optional string)
"Insert an image button based on text starting at START for LENGTH chars.
If buttontext is unknown, just insert that text.
If we have an image associated with it, use that image.
Optional argument STRING is a string upon which to add text properties."
(when ezimage-use-images
(let* ((bt (buffer-substring start (+ length start)))
(a (assoc bt ezimage-expand-image-button-alist)))
(if (and a (symbol-value (cdr a)))
(ezimage-insert-over-text (symbol-value (cdr a))
start
(+ start (length bt))))))
string)