Function: eca-chat--yank-considering-image
eca-chat--yank-considering-image is a natively compiled function
defined in eca-chat-context.el.
Signature
(eca-chat--yank-considering-image ORIG-FUN &rest ARGS)
Documentation
Around advice for paste commands to use yank-media for images.
Call ORIG-FUN with ARGS if not media.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-context.el
(defun eca-chat--yank-considering-image (orig-fun &rest args)
"Around advice for paste commands to use `yank-media' for images.
Call ORIG-FUN with ARGS if not media."
(if (and (derived-mode-p 'eca-chat-mode)
(fboundp 'yank-media)
(boundp 'yank-media--registered-handlers)
yank-media--registered-handlers
(eca-chat--clipboard-image-p))
(call-interactively #'yank-media)
(apply orig-fun args)))