Function: eca-chat--last-image-overlay
eca-chat--last-image-overlay is a natively compiled function defined
in eca-chat-image.el.
Signature
(eca-chat--last-image-overlay)
Documentation
Return the rightmost inline-image overlay in this buffer, or nil.
Used by eca-chat-save-image-at-point as a fallback when point is
not on any image overlay.
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--last-image-overlay ()
"Return the rightmost inline-image overlay in this buffer, or nil.
Used by `eca-chat-save-image-at-point' as a fallback when point is
not on any image overlay."
(let (best)
(dolist (ov (overlays-in (point-min) (point-max)))
(when (and (overlay-get ov 'eca-chat-image)
(or (null best)
(> (overlay-start ov) (overlay-start best))))
(setq best ov)))
best))