Function: eca-chat--propertize-image-mention
eca-chat--propertize-image-mention is a natively compiled function
defined in eca-chat-image.el.
Signature
(eca-chat--propertize-image-mention STR PATH)
Documentation
Mark STR as a mention of the image at PATH, then return STR.
STR is left as is when PATH is not an image file. The mark is the
eca-chat-image-path text property, which font-lock leaves alone
and which travels with the text, e.g. through the prompt history.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-image.el
(defun eca-chat--propertize-image-mention (str path)
"Mark STR as a mention of the image at PATH, then return STR.
STR is left as is when PATH is not an image file. The mark is the
`eca-chat-image-path' text property, which font-lock leaves alone
and which travels with the text, e.g. through the prompt history."
(when (eca-chat--image-file-p path)
(put-text-property 0 (length str) 'eca-chat-image-path path str))
str)